Skip to content

Python implementations of some of the fundamental Machine Learning models and algorithms from scratch.

Notifications You must be signed in to change notification settings

youneskazemi/ML-From-Scratch

Repository files navigation

ML-From-Scratch

About This Repository

ML-From-Scratch is dedicated to providing clear and educational implementations of classic machine learning algorithms using Python, without relying on the advanced frameworks. This repository is ideal for those who wish to understand the inner workings of algorithms such as linear regression, logistic regression, and Naive Bayes classifiers from the ground up.

Algorithms Included

This repository includes the following machine learning algorithms implemented from scratch:

  • Linear Regression: Used for predicting real-valued outputs.
  • Logistic Regression: Suitable for binary classification tasks.
  • Naive Bayes Classifier: A probabilistic classifier based on applying Bayes' theorem with strong (naive) independence assumptions.
  • K-Means Clustering: A method of vector quantization.
  • (Include other algorithms as applicable)

Getting Started

Prerequisites

Ensure you have Python 3.x installed on your machine. You can download Python from python.org.

Installation

Clone this repository to your local machine to get started:

git clone https://github.com/youneskazemi/ML-From-Scratch.git
cd ML-From-Scratch

Usage

Navigate into the specific algorithm directory you are interested in, and run the Python script. For example:

cd linear_regression
python linear_regression.py

Contributing

Contributions to improve or add new algorithms are warmly welcomed. Please feel free to fork the repository, make changes, and submit a pull request. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Python implementations of some of the fundamental Machine Learning models and algorithms from scratch.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published