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.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 邂逅于同一个青春年华 那时候一群大男孩,来自不同的地方,因为一次选择,他们邂逅在了同一个青春年华,同一个学校,...
    假文青的野生写作阅读 3,480评论 1 2
  • 如果一件事情困扰了你很久,为此你妥协过,改变过,怎样都让自己不满意,不如尝试彻底放弃。也许一刀下去,恩断义绝,...
    qiuuuuuu阅读 1,391评论 0 0
  • 朋友让我帮忙打听好一点的学前班,我有些纳闷,她们家的宝宝上的是公立幼儿园,设施齐全,收费便宜,而且里面有大班,相当...
    松萝渡阅读 1,517评论 0 1
  • 272. Closest Binary Search Tree Value II 解法1,最简单粗暴的办法,ino...
    健时总向乱中忙阅读 2,425评论 0 0

友情链接更多精彩内容