四步學(xué)Python( 免費(fèi)書(shū) & 資源)

Four steps to master machine learning with python (including free books & resources)

To understand and apply machine learning techniques you have to learn Python or R. Both are programming languages similar to C, Java or PHP. However, since Python and R are much younger and “farer away” from the CPU, they are easier. The advantage of Python is that it can be adopted to many other problems than R, which is only used for handling data, analysing it with e.g. machine learning and statistic algorythms and ploting it in nice graphs. Because Python has a broader distribution (hosting websites with Jango, natural language proecssing, accessing APIs of websites such as Twitter, Linkedin etc.) and resembles more classical programming languages like C Python is more popular.

The four steps of learning machine learning in python

First you have to learn the basics of Python using books, courses and videos.

Then you have to master the different moduls such as Pandas, Numpy, Matplotlib and Natural Language Processing (NLP) in order to handle, clean, plot and understand data.

Afterwards you have to able to scrap data from the web which is either done by using APIs of websites or the web-scraping moduls Beautiful Soup. Web scraping allows you to collect data which you feed into you machine learning algorithms.

In the last step you have to learn machine learning (ML) tools like Scikit-Learn or implement ML-algorithm from scratch.

1. Getting started with Python:

And easy and fast way to learn Python is to register atcodecademy.comand imediately start to code and learn the basics of python. A classic is the websitelearnpythonthehardwaywhich is referenced by a lot of python programmers. A good PDF is abyte of python. Alist of python resourcesfor beginners is also provided by the python community. A book from O’Reilley is Think Python, which can be downloaded forfree from here. A last resource isIntroduction to Python for Econometrics, Statistics and Data Analysiswhich also covers the basics of Python.

2. Important Modules for machine learning

The most important modules for machine learning areNumPy,Pandas,MatplotlibandIPython. A book covering a couple of these modules isData Analysis with Open Source Tools.??The free bookIntroduction to Python for Econometrics, Statistics and Data Analysisfrom 1. also covers Numpy, Pandas, matplotlib and IPython. Another resource isPython for Data Analysis: Data Wrangling with Pandas, NumPy, and IPython, which also covers the most important modules. Her are other?free Numpy (Numerical Python,Numpy Userguide,Guide to NumPy), Pandas (Pandas, Powerful Python Data Analysis Toolkit,Practical Business Python,Intros to Pandas Data Structure) andMatplotlib books.

Other resources:

10 minutes to Pandas

Pandas for machine learning

100 NumPy exercises

3. Mining and scraping the data from websites and through APIs

Once you have understood the basics of python and the most important modules you have to learn how to collect data from different sources. This technique is also called web scrapping. Classic sources are text from websites, textual data through APIs to access websites such as twitter or linkedin. Good books on web scraping areMining the Social Web (free book!),Web Scraping with PythonandWeb Scraping with Python: Collecting Data from the Modern Web.

Lastly this textual data has to be transformed into numerical data, which is done with natural language processing techniques covered byNatural language processing with PythonandNatural Language Annotation for Machine Learning.?Other data are images and videos, which can be analysed using computer vision techniques:Programming Computer Vision with Python,Programming Computer Vision with Python: Tools and algorithms for analyzing imagesandPractical Python and OpenCVare typical resources to analyse images.

Educational and interesting examples of what you can already do using basic python commands and web scraping techniques can be found in these examples:

Mini-Tutorial: Saving Tweets to a Database with Python

Web Scraping Indeed for Key Data Science Job Skills

Case Study: Sentiment Analysis On Movie Reviews

First Web Scraper

Sentiment Analysis of Emails

Simple Text Classification

Basic Sentiment Analysis with Python

Twitter sentiment analysis using Python and NLTK

Second Try: Sentiment Analysis in Python

Natural Language Processing in a Kaggle Competition for Movie Reviews

4. Machine learning with Python

Machine learning can be divided into four groups. Classification, clustering, regression and dimensionalty reduction.

Classification can also be called supervised learning and helps one to classify an image in order to identify a symbol or face in the image, or to classify a user from its profile and to grant him different credit scores. Clustering happens under unsupervised learning and allows the user to identify groups/clusters within its data. Regression permits to estimate a value from a paramter set and can be used to predict the best price for a house, apartment or car.

All importantmodules, packages and techniquesto learn?Machine Learning in Python, C, Scala, Java, Julia, MATLAB, Go, R and Ruby. Books about machine learning in python:

I especially recommend?the bookMachine learning in action.?Although a bit short it is probably a classic in machine learning due to its ageProgramming Collective Intelligence. These two books let you build machine learning algorithms from scratch.

Most recent publications about machine learning are base on the Python module scikit-learn. It makes machine learning very easy since all the algorithm are already implemented. The only thing you do is to tell python which ML-technique should be used to analyse the data.

A free scikit-learn tutorialcan be found on the official scikit-learn website. Other posts are be found here:

Introduction to Machine Learning with Python and Scikit-Learn

Data Science in Python

Machine Learning for Predicting Bad Loans

A Generic Architecture for Text Classification with Machine Learning

Using Python and AI to predict types of wine

Advice for applying Machine Learning

Predicting customer churn with scikit-learn

Mapping Your Music Collection

Data Science in Python

Case Study: Sentiment Analysis on Movie Reviews

Document Clustering with Python

Five most popular similarity measures implementation in?python

Case Study: Sentiment Analysis on Movie Reviews

Will it Python?

Text Processing in Machine Learning

Hacking an epic NHL goal celebration with a hue light show and real-time machine learning

Vancouver Room Prices

Exploring and Predicting University Faculty Salaries

Predicting Airline Delays

Books about machine learning and the module scikit-learn in Python are:

Collection of books on reddit

Building Machine Learning Systems with Python

Building Machine Learning Systems with Python, 2nd Edition

Learning scikit-learn: Machine Learning in Python

Machine Learning Algorithmic Perspective

Data Science from Scratch –?First Principles with Python

Machine Learning in Python

Books which are published in the coming months are:

Introduction to Machine Learning with Python

Thoughtful Machine Learning with Python: A Test-Driven Approach

Courses and blogs about Machine learning

You want to earn a degree, take an online course or attand a real workshop, camp or university course? Here are some links:Collection of linksto online education in analytics, Big Data,?Data Mining, and Data Science.?Coursera course inmachine learningandData Analyst Nanodegreefrom Udacity are other recommended online courses.List of frequently updatedblogs about machine learning.

A great youtube video is this class fromJake Vanderplas, Olivier Grisel about Exploring Machine Learning with Scikit-learn!

Theory of Machine Learning

Want to learn the theory of machine learning?The Elements of statistical LearningandIntroduction to Statistical Learningare often cited classics. Other books areIntroduction to machine learningandA Course in Machine Learning.?The links contain free PDF, so you don’t have to pay them! Don’t want to read this? Watch15 hours theory of machine learning!

Please follow and like us:

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末玫氢,一起剝皮案震驚了整個(gè)濱河市湿右,隨后出現(xiàn)的幾起案子坐梯,更是在濱河造成了極大的恐慌岗仑,老刑警劉巖,帶你破解...
    沈念sama閱讀 211,123評(píng)論 6 490
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件渔呵,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡砍鸠,警方通過(guò)查閱死者的電腦和手機(jī)扩氢,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,031評(píng)論 2 384
  • 文/潘曉璐 我一進(jìn)店門(mén),熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)爷辱,“玉大人录豺,你說(shuō)我怎么就攤上這事朦肘。” “怎么了双饥?”我有些...
    開(kāi)封第一講書(shū)人閱讀 156,723評(píng)論 0 345
  • 文/不壞的土叔 我叫張陵媒抠,是天一觀的道長(zhǎng)。 經(jīng)常有香客問(wèn)我咏花,道長(zhǎng)趴生,這世上最難降的妖魔是什么? 我笑而不...
    開(kāi)封第一講書(shū)人閱讀 56,357評(píng)論 1 283
  • 正文 為了忘掉前任昏翰,我火速辦了婚禮苍匆,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘棚菊。我一直安慰自己浸踩,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 65,412評(píng)論 5 384
  • 文/花漫 我一把揭開(kāi)白布统求。 她就那樣靜靜地躺著检碗,像睡著了一般。 火紅的嫁衣襯著肌膚如雪码邻。 梳的紋絲不亂的頭發(fā)上折剃,一...
    開(kāi)封第一講書(shū)人閱讀 49,760評(píng)論 1 289
  • 那天,我揣著相機(jī)與錄音冒滩,去河邊找鬼微驶。 笑死,一個(gè)胖子當(dāng)著我的面吹牛开睡,可吹牛的內(nèi)容都是我干的因苹。 我是一名探鬼主播,決...
    沈念sama閱讀 38,904評(píng)論 3 405
  • 文/蒼蘭香墨 我猛地睜開(kāi)眼篇恒,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼扶檐!你這毒婦竟也來(lái)了?” 一聲冷哼從身側(cè)響起胁艰,我...
    開(kāi)封第一講書(shū)人閱讀 37,672評(píng)論 0 266
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤款筑,失蹤者是張志新(化名)和其女友劉穎,沒(méi)想到半個(gè)月后腾么,有當(dāng)?shù)厝嗽跇?shù)林里發(fā)現(xiàn)了一具尸體奈梳,經(jīng)...
    沈念sama閱讀 44,118評(píng)論 1 303
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,456評(píng)論 2 325
  • 正文 我和宋清朗相戀三年解虱,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了攘须。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,599評(píng)論 1 340
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡殴泰,死狀恐怖于宙,靈堂內(nèi)的尸體忽然破棺而出浮驳,到底是詐尸還是另有隱情,我是刑警寧澤捞魁,帶...
    沈念sama閱讀 34,264評(píng)論 4 328
  • 正文 年R本政府宣布至会,位于F島的核電站,受9級(jí)特大地震影響谱俭,放射性物質(zhì)發(fā)生泄漏奉件。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,857評(píng)論 3 312
  • 文/蒙蒙 一旺上、第九天 我趴在偏房一處隱蔽的房頂上張望瓶蚂。 院中可真熱鬧,春花似錦宣吱、人聲如沸窃这。這莊子的主人今日做“春日...
    開(kāi)封第一講書(shū)人閱讀 30,731評(píng)論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)杭攻。三九已至,卻和暖如春疤坝,著一層夾襖步出監(jiān)牢的瞬間兆解,已是汗流浹背。 一陣腳步聲響...
    開(kāi)封第一講書(shū)人閱讀 31,956評(píng)論 1 264
  • 我被黑心中介騙來(lái)泰國(guó)打工跑揉, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留锅睛,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 46,286評(píng)論 2 360
  • 正文 我出身青樓历谍,卻偏偏與公主長(zhǎng)得像现拒,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子望侈,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 43,465評(píng)論 2 348

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

  • 追求印蔬,就是追和求和組合出擊! 追的原因是自己和理想戀人有差距脱衙,需要奮起直追侥猬,從自我發(fā)展做起!不但捐韩,要完善自己的性格...
    世說(shuō)新解閱讀 138評(píng)論 0 0
  • 溫水流過(guò)指尖 咖啡飄蕩香氣 夕陽(yáng)暈染霞光 雨滴劃過(guò)天際 秋風(fēng)吹落枯葉 是你么 時(shí)間 稚童揮手告別 游子推開(kāi)家門(mén) 新...
    說(shuō)書(shū)客閱讀 193評(píng)論 0 0