Machine Learning Week 1

17/10/31 MWhite's learning notes

Supervised Learning & Unsupervised Learning
Regression & Classification

Supervised Learning

In supervised learning, we are given a data set and already know what our correct output should look like, having the idea that there is a relationship between the input and the output.

Supervised learning problems are categorized into "regression" and "classification" problems. In a 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. In a 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.

Unsupervised Learning

Unsupervised learning allows us to approach problems with little or no idea what our results should look like. We can derive structure from data where we don't necessarily know the effect of the variables.

We can derive this structure by clustering the data based on relationships among the variables in the data.

With unsupervised learning there is no feedback based on the prediction results.

Cost function

Cost function

The relationship between hypothesis function and cost function

we should try to minimize the cost function.



Two dimension

Gradient descent


Gradient descent is a kid of algorithms.


way

And do remember update the parameters at the same time. (Simultaneously)

alpha is learning rate (not too small, not too large)

Gradient Descent For Linear Regression


The point of all this is that if we start with a guess for our hypothesis and then repeatedly apply these gradient descent equations, our hypothesis will become more and more accurate.

Matrices and Vectors







Matrices are not commutative: A?B≠B?A
Matrices are associative: (A?B)?C=A?(B?C)
identity matrix


inverse pinv(A)
transposition AT

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子殉簸,更是在濱河造成了極大的恐慌纵势,老刑警劉巖圃庭,帶你破解...
    沈念sama閱讀 216,544評(píng)論 6 501
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件馆类,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡行贪,警方通過(guò)查閱死者的電腦和手機(jī)十艾,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,430評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門抵代,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái),“玉大人忘嫉,你說(shuō)我怎么就攤上這事荤牍。” “怎么了庆冕?”我有些...
    開(kāi)封第一講書人閱讀 162,764評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵康吵,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我访递,道長(zhǎng)晦嵌,這世上最難降的妖魔是什么? 我笑而不...
    開(kāi)封第一講書人閱讀 58,193評(píng)論 1 292
  • 正文 為了忘掉前任,我火速辦了婚禮惭载,結(jié)果婚禮上旱函,老公的妹妹穿的比我還像新娘。我一直安慰自己棕兼,他們只是感情好陡舅,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,216評(píng)論 6 388
  • 文/花漫 我一把揭開(kāi)白布。 她就那樣靜靜地躺著伴挚,像睡著了一般。 火紅的嫁衣襯著肌膚如雪灾炭。 梳的紋絲不亂的頭發(fā)上茎芋,一...
    開(kāi)封第一講書人閱讀 51,182評(píng)論 1 299
  • 那天,我揣著相機(jī)與錄音蜈出,去河邊找鬼田弥。 笑死,一個(gè)胖子當(dāng)著我的面吹牛铡原,可吹牛的內(nèi)容都是我干的偷厦。 我是一名探鬼主播,決...
    沈念sama閱讀 40,063評(píng)論 3 418
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼燕刻,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼只泼!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起卵洗,我...
    開(kāi)封第一講書人閱讀 38,917評(píng)論 0 274
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤请唱,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后过蹂,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體十绑,經(jīng)...
    沈念sama閱讀 45,329評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,543評(píng)論 2 332
  • 正文 我和宋清朗相戀三年酷勺,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了本橙。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 39,722評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡脆诉,死狀恐怖甚亭,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情库说,我是刑警寧澤狂鞋,帶...
    沈念sama閱讀 35,425評(píng)論 5 343
  • 正文 年R本政府宣布,位于F島的核電站潜的,受9級(jí)特大地震影響骚揍,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,019評(píng)論 3 326
  • 文/蒙蒙 一信不、第九天 我趴在偏房一處隱蔽的房頂上張望嘲叔。 院中可真熱鬧,春花似錦抽活、人聲如沸硫戈。這莊子的主人今日做“春日...
    開(kāi)封第一講書人閱讀 31,671評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)丁逝。三九已至,卻和暖如春梭姓,著一層夾襖步出監(jiān)牢的瞬間霜幼,已是汗流浹背。 一陣腳步聲響...
    開(kāi)封第一講書人閱讀 32,825評(píng)論 1 269
  • 我被黑心中介騙來(lái)泰國(guó)打工誉尖, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留罪既,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 47,729評(píng)論 2 368
  • 正文 我出身青樓铡恕,卻偏偏與公主長(zhǎng)得像琢感,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子探熔,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,614評(píng)論 2 353

推薦閱讀更多精彩內(nèi)容

  • 包括黃庭堅(jiān)祭刚、歐陽(yáng)修牌捷、蘇軾、王安石涡驮。 中華文明五千年來(lái)暗甥,人才輩出,所謂七十二行捉捅,行行出狀元撤防,在北宋時(shí)期的書法藝術(shù)領(lǐng)域...
    天馬酒仙閱讀 423評(píng)論 0 0
  • 這張明信片來(lái)自于Ailadi,她居然注冊(cè)到自己名字的.com域名棒口,看來(lái)這個(gè)名字在意大利很冷僻寄月。我們認(rèn)識(shí)是因?yàn)镃hi...
    劉淼閱讀 759評(píng)論 3 2
  • 廣播里主持人接起熱線電話漾肮,電話那頭是個(gè)女孩。 “你好茎毁,這位姑娘” “你好克懊,……忱辅。” “你跟我們編輯說(shuō)谭溉,你想讓姐姐罵...
    莫閑2016閱讀 288評(píng)論 0 1