Python Machine Learning

From your first model to a deployed one. These 31 tutorials cover preprocessing, feature engineering, regression, decision trees, random forests, XGBoost, SVMs, clustering, PCA, model evaluation, hyperparameter tuning, and deployment, all with scikit-learn. The series wraps with a full house price prediction project.

ML: Best Practices, the Ethics and Gotchas Nobody Warns You About

These ML best practices cover the ethics and the catches that nobody warns you about: how to spot bias in your data, how to measure fairness across different groups of people, how to explain what your machine learning model is actually doing, and the responsible AI checklist that separates a production-grade model from a dangerous prototype. Fairness in machine learning is not a purely technical problem. That is the core lesson of the Gender Shades study. after Joy Buolamwini & ... Read More

ML: NLP Basics, Tokenization and TF-IDF

A model cannot read. Feed it ten thousand product reviews and it sees nothing but bytes until you turn each sentence into numbers. That translation step is what NLP basics are really about: tokenize the text, drop the noise words, normalize what remains, and score every term with TF-IDF. This post walks that whole path with NLTK and scikit-learn, ending in a working classifier. “There should be one, and preferably only one, obvious way to do it.” Tim Peters, The ... Read More

ML: Sentiment Analysis, Bag-of-Words to ML

Python sentiment analysis lets you build a working analyzer that reads a movie review and tells you whether it is positive or negative. You will clean the raw text, turn words into numbers with TF-IDF (term frequency times inverse document frequency), train a classifier on 2,000 real movie reviews, and score it honestly on reviews it has never seen. No Graphics Processing Unit (GPU), no deep learning, runs in a few seconds on a laptop. “Sentiment analysis is the gateway ... Read More