Skip to content

YapWH1208/Machine-learning-algorithm-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Machine-learning-algorithm-from-scratch

Machine learning toolkit from scratch using NumPy
Writing common algorithms from machine learning to code.
This repo will be intermittent update

Libraries Used

  • Numpy

Models included

Linear Model

  • Linear regressor
  • Ridge regressor
  • Lasso regressor
  • Logistic regressor

Tree

  • Decision tree
  • Random forest

SVM(Support Vector Machine)

  • SVM

Metrics included

Common

  • Mean Squared Error
  • Mean Absolute Error

Usage Example

Demo

cd WHMLT
python demo.py
  • Remember to change the filepath in the demo.py

Linear Regression

from WHMLT.linear import linear

Logistic Regression

from WHMLT.linear import logistic