homemade-machine-learning is a repository by Oleksii Trekhleb containing Python implementations of classic machine-learning algorithms done “from scratch”, meaning you don’t rely heavily on high-level libraries but instead write the logic yourself to deepen understanding. Each algorithm is accompanied by mathematical explanations, visualizations (often via Jupyter notebooks), and interactive demos so you can tweak parameters, data, and observe outcomes in real time. The purpose is pedagogical: you’ll see linear regression, logistic regression, k-means clustering, neural nets, decision trees, etc., built in Python using fundamentals like NumPy and Matplotlib, not hidden behind API calls. It is well suited for learners who want to move beyond library usage to understand how algorithms operate internally—how cost functions, gradients, updates and predictions work.

Features

  • Implementations of many machine-learning algorithms in pure Python for educational clarity
  • Interactive Jupyter notebooks with visualizations of data, decision boundaries, and error surfaces
  • Explanation of math behind each algorithm including derivations and intuition
  • Hands-on demos where you can change algorithm configuration and see effects
  • Emphasis on building algorithms from first principles rather than one-liner libraries
  • Good for interview prep, teaching, and self-study of ML fundamentals

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Homemade Machine Learning

Homemade Machine Learning Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Homemade Machine Learning!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Libraries, Python Machine Learning Software

Registered

2025-10-15