Skip to content

Implementations of some common machine learning algorithms in C++, python and typescript

License

Notifications You must be signed in to change notification settings

M-ArafatZaman/MachineLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning Implementations

Here are some of my implementations of some commonly used machine learning algorithms in C++, python, and typescript.


Table of contents


Linear Regression

This is an implementation of simple Linear Regression in C++.

Formula

Linear Regression formula

C++ implementation

template <class T>
pair<float, float> linearRegression(vector<T>& xs, vector<T>& ys);
vector<int> xs = {1,2,3,4,5};
vector<int> ys = {1,2,3,4,5};

pair<float, float> equation = linearRegression(xs, ys);
equation.first  = 1
equation.second = 0

About

Implementations of some common machine learning algorithms in C++, python and typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages