← all repositories
zotroneneis/machine_learning_basics

Classic ML algorithms, rewritten in plain Python

These notebooks rebuild fundamental machine learning algorithms from scratch in pure Python to show how they work under the hood.

4.4k stars Jupyter Notebook ML FrameworksLearning
machine_learning_basics
Not currently ranked — collecting fresh signals.
star history

What it does A collection of Jupyter notebooks that implements standard machine learning algorithms—linear and logistic regression, k-NN, k-Means, SVMs, a simple neural network, and others—using only Python 3.6+ and no external ML libraries. The author explicitly warns that the code prioritizes clarity over speed or production readiness.

The interesting bit The project treats minimal dependencies as a feature. By refusing to reach for scikit-learn or similar libraries, the notebooks force you to confront the underlying mechanics that are usually buried under abstraction layers.

Key highlights

  • Covers a broad undergraduate syllabus: decision trees, PCA, perceptron, softmax regression, Bayesian linear regression, and more.
  • Includes starter notebooks on image and numerical data preprocessing, though the README notes these require downloading datasets first.
  • Offers a live Binder demo that runs fully in-browser, though the preprocessing notebooks are excluded because they need local datasets.
  • MIT licensed and open to algorithm requests via issues.

Caveats

  • The author is upfront that these are not efficient implementations; if you need performance, look elsewhere.
  • The preprocessing track is incomplete: the README promises more dataset types “within the next months,” and the existing preprocessing notebooks do not work in Binder because they require downloading datasets first.

Verdict Ideal for students or practitioners who have called .fit() a hundred times but never wrote a gradient update by hand. Skip it if you are hunting for optimized, production-ready code.

Frequently asked

What is zotroneneis/machine_learning_basics?
These notebooks rebuild fundamental machine learning algorithms from scratch in pure Python to show how they work under the hood.
Is machine_learning_basics open source?
Yes — zotroneneis/machine_learning_basics is open source, released under the MIT license.
What language is machine_learning_basics written in?
zotroneneis/machine_learning_basics is primarily written in Jupyter Notebook.
How popular is machine_learning_basics?
zotroneneis/machine_learning_basics has 4.4k stars on GitHub.
Where can I find machine_learning_basics?
zotroneneis/machine_learning_basics is on GitHub at https://github.com/zotroneneis/machine_learning_basics.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.