没有合适的资源?快使用搜索试试~ 我知道了~
首页Machine Learning Mastery With Python Understand Your Data, Create 无水印原版pdf
Machine Learning Mastery With Python Understand Your Data, Creat...

Machine Learning Mastery With Python Understand Your Data, Create Accurate Models and Work Projects End-To-End 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在美国亚马逊官网搜索此书
资源详情
资源评论
资源推荐


Jason Brownlee
Machine Learning Mastery With Python
Understand Your Data, Create Accurate Models and
Work Projects End-To-End

i
Machine Learning Mastery With Python
©
Copyright 2016 Jason Brownlee. All Rights Reserved.
Edition: v1.4

Contents
Preface iii
I Introduction 1
1 Welcome 2
1.1 Learn Python Machine Learning The Wrong Way . . . . . . . . . . . . . . . . . 2
1.2 Machine Learning in Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 What This Book is Not . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
II Lessons 8
2 Python Ecosystem for Machine Learning 9
2.1 Python . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 SciPy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.3 scikit-learn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Python Ecosystem Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3 Crash Course in Python and SciPy 14
3.1 Python Crash Course . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.2 NumPy Crash Course . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3.3 Matplotlib Crash Course . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4 Pandas Crash Course . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4 How To Load Machine Learning Data 26
4.1 Considerations When Loading CSV Data . . . . . . . . . . . . . . . . . . . . . . 26
4.2 Pima Indians Dataset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.3 Load CSV Files with the Python Standard Library . . . . . . . . . . . . . . . . 27
4.4 Load CSV Files with NumPy . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.5 Load CSV Files with Pandas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
ii

iii
5 Understand Your Data With Descriptive Statistics 31
5.1 Peek at Your Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.2 Dimensions of Your Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.3 Data Type For Each Attribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.4 Descriptive Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.5 Class Distribution (Classification Only) . . . . . . . . . . . . . . . . . . . . . . . 34
5.6 Correlations Between Attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.7 Skew of Univariate Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.8 Tips To Remember . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.9 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6 Understand Your Data With Visualization 38
6.1 Univariate Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
6.2 Multivariate Plots . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
6.3 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
7 Prepare Your Data For Machine Learning 47
7.1 Need For Data Pre-processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.2 Data Transforms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
7.3 Rescale Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
7.4 Standardize Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
7.5 Normalize Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
7.6 Binarize Data (Make Binary) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
7.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
8 Feature Selection For Machine Learning 52
8.1 Feature Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
8.2 Univariate Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8.3 Recursive Feature Elimination . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
8.4 Principal Component Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
8.5 Feature Importance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
8.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
9 Evaluate the Performance of Machine Learning Algorithms with Resampling 57
9.1 Evaluate Machine Learning Algorithms . . . . . . . . . . . . . . . . . . . . . . . 57
9.2 Split into Train and Test Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
9.3 K-fold Cross Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.4 Leave One Out Cross Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
9.5 Repeated Random Test-Train Splits . . . . . . . . . . . . . . . . . . . . . . . . . 60
9.6 What Techniques to Use When . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
9.7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
10 Machine Learning Algorithm Performance Metrics 62
10.1 Algorithm Evaluation Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
10.2 Classification Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
10.3 Regression Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
10.4 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
剩余178页未读,继续阅读












安全验证
文档复制为VIP权益,开通VIP直接复制

评论1