machine-learning

Machine learning tutorials in Python covering models, training, evaluation, and real projects.

Statistics: Correlation & Regression Analysis

Python correlation and regression measure how two variables move together: Pearson and Spearman correlation, correlation matrices, simple linear regression from scratch and with SciPy, R-squared, and residual analysis, every number run on real code. “Correlation does not imply causation, but it does waggle its eyebrows suggestively.” Randall Munroe, xkcd Correlation answers one simple question: when one number goes up, does the other one tend to go up too, go down, or just do its own thing? Regression goes one step ... Read More

Python: Web Scraping with BeautifulSoup

The data you need is sitting right there on a web page: product prices, job listings, book catalogs. No API, no download button, just HTML. Python BeautifulSoup is how you take it anyway: fetch the page with requests, parse the HTML into a searchable tree, and pull out exactly the elements you want. This guide runs the full pipeline, from your first parse to pagination and saving results. “Information is power. But like all power, there are those who want ... Read More

Python: 50 Libraries Every Developer Should Know (The Ecosystem Map)

PyPI (Python Package Index) holds over 500,000 packages, and nobody can learn them all. This post cuts that mountain down to the 50 Python libraries that actually matter, grouped by what you are trying to build, each with its install command, a one-line description, and the moment you would reach for it. “If I have seen further, it is by standing on the shoulders of giants.” Isaac Newton Last Updated: July 2026 | Tested on: Python 3.14.6 | Difficulty: Intermediate ... Read More