M.L.-Introduction and Linear Regression

Supervised Learning


1.We already know what we want.

2.There are certain rules between inputs and outputs.

Regression Problem

we are trying to predict results within a continuous output, meaning that we are trying to map input variables to some continuous function.

Classification Problem

we are instead trying to predict results in a discrete output. In other words, we are trying to map input variables into discrete categories.

Examples

1.A function can predict house's price depend on its area.

2.A judgement can predict tomorrow's weather depend on history data.

Unsupervised Learning


1.We know little or no idea about the output.

2.Cluster the data depending on its own characteristics.

Example

Clustering: Take a collection of 1,000,000 different genes, and find a way to automatically group these genes into groups that are somehow similar or related by different variables, such as lifespan, location, roles, and so on.

Non-clustering: The "Cocktail Party Algorithm", allows you to find structure in a chaotic environment. (i.e. identifying individual voices and music from a mesh of sounds at a?cocktail party).

Hypothesis Function


h(x,θ) = θ0 + θ1*x

Cost Function J(x1,x2..)



We can measure the accuracy of our hypothesis function by using a?cost function. This takes an average difference (actually a fancier version of an average) of all the results of the hypothesis with inputs from x's and the actual output y's.

Gradient Descent


So we have our hypothesis function and we have a way of measuring how well it fits into the data. Now we need to estimate the parameters in the hypothesis function. That's where gradient descent comes in.

θ1 eventually converges to its minimum value.
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容

  • 邂逅于同一個青春年華 那時候一群大男孩,來自不同的地方,因為一次選擇,他們邂逅在了同一個青春年華,同一個學校,...
    假文青的野生寫作閱讀 499評論 1 2
  • 如果一件事情困擾了你很久,為此你妥協過,改變過,怎樣都讓自己不滿意,不如嘗試徹底放棄。也許一刀下去,恩斷義絕,...
    qiuuuuuu閱讀 173評論 0 0
  • 朋友讓我幫忙打聽好一點的學前班,我有些納悶,她們家的寶寶上的是公立幼兒園,設施齊全,收費便宜,而且里面有大班,相當...
    松蘿渡閱讀 202評論 0 1
  • 272. Closest Binary Search Tree Value II 解法1,最簡單粗暴的辦法,ino...
    健時總向亂中忙閱讀 307評論 0 0