Skip to content

Common ML algorithms implemented from scratch

Notifications You must be signed in to change notification settings

S-K-ML/ml-algos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common ML algorithms implemented from scratch


Included algorithms:

Regression:

  • Linear regression with $L_2$, $L_1$ and $L_{\infty}$ objectives

Classification:

  • Logistic regression for binary classification $y \in \{0,1\}$
  • Binomial deviance loss + $L_2$ regularization for binary classification $y \in \{-1,1\}$
  • Hinge loss + $L_2$ regularization for binary classification $y \in \{-1,1\}$
  • SVM dual form for binary classification $y \in \{-1,1\}$
  • Multinomial deviance loss for multiclass classification

Clustering:

  • K-means clustering

Dimensionality reduction:

  • Principal component analysis (PCA)

Tests demo:

tests/viz.ipynb

Installation:

pip install -r requirements.txt

About

Common ML algorithms implemented from scratch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors