Skip to content

About

🧮 Core machine-learning algorithms from first principles: linear & logistic regression, decision trees, random forests

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

Repository files navigation

Machine Learning Algorithms from Scratch

top language last commit repo size license

Welcome to my Machine Learning Algorithms from Scratch repository! This project contains foundational machine learning algorithms implemented in Python, focusing on building these models from the ground up to better understand their mechanics.

Project Overview

This repository currently includes implementations of linear regression and logistic regression. Building these from scratch helps develop an understanding of the mathematical concepts and coding techniques needed to create and optimize models.

Algorithms Included

  • Linear Regression: Implemented using gradient descent to minimize the cost function for regression tasks.
  • Logistic Regression: A binary classification algorithm using sigmoid activation and cross-entropy loss.
  • Decision Tree: Splits data using feature-based rules to form a tree for classification or regression.
  • Random Forest: Combines many decision trees trained on random data subsets to improve accuracy and reduce overfitting.

Getting Started

Prerequisites

  • Python 3.13.0
  • Basic knowledge of Python and machine learning fundamentals

Installation

Clone the repository:

git clone https://github.com/WaelYTz/ML_AlgorithmsFromScratch.git
cd ML_AlgorithmsFromScratch

About

🧮 Core machine-learning algorithms from first principles: linear & logistic regression, decision trees, random forests

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages