08.06.2015 Views

Building Machine Learning Systems with Python - Richert, Coelho

Building Machine Learning Systems with Python - Richert, Coelho

Building Machine Learning Systems with Python - Richert, Coelho

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table of Contents<br />

Successfully cheating using SentiWordNet 141<br />

Our first estimator 143<br />

Putting everything together 145<br />

Summary 146<br />

Chapter 7: Regression – Recommendations 147<br />

Predicting house prices <strong>with</strong> regression 147<br />

Multidimensional regression 151<br />

Cross-validation for regression 151<br />

Penalized regression 153<br />

L1 and L2 penalties 153<br />

Using Lasso or Elastic nets in scikit-learn 154<br />

P greater than N scenarios 155<br />

An example based on text 156<br />

Setting hyperparameters in a smart way 158<br />

Rating prediction and recommendations 159<br />

Summary 163<br />

Chapter 8: Regression – Recommendations Improved 165<br />

Improved recommendations 165<br />

Using the binary matrix of recommendations 166<br />

Looking at the movie neighbors 168<br />

Combining multiple methods 169<br />

Basket analysis 172<br />

Obtaining useful predictions 173<br />

Analyzing supermarket shopping baskets 173<br />

Association rule mining 176<br />

More advanced basket analysis 178<br />

Summary 179<br />

Chapter 9: Classification III – Music Genre Classification 181<br />

Sketching our roadmap 181<br />

Fetching the music data 182<br />

Converting into a wave format 182<br />

Looking at music 182<br />

Decomposing music into sine wave components 184<br />

Using FFT to build our first classifier 186<br />

Increasing experimentation agility 186<br />

Training the classifier 187<br />

Using the confusion matrix to measure accuracy in<br />

multiclass problems 188<br />

An alternate way to measure classifier performance using<br />

receiver operator characteristic (ROC) 190<br />

[ iv ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!