Skip to content

GeorgiiFirsov/MachineLearningModels

Repository files navigation

MachineLearningModels

This repository contains machine learning models implementation in Python 3.

You can look for some examples in files Example<model>.ipynb.

Currently implemented

Usage

Usage of these models is really simple - you just need to import required model class and fit it with your data.

Generalized linear regression

from MachineLearning.LinearRegression import LinearRegression
from MachineLearning.Metrics import mean_squared_error

model = LinearRegression(degree=3)

model.fit(X_train, y_train)
y_pred = model.predict(X_test)

print(mean_squared_error(y_pred, y_test))

Multiple linear regression

from MachineLearning.MultipleLinearRegression import MultipleLinearRegression
from MachineLearning.Metrics import mean_squared_error

model = MultipleLinearRegression()

model.fit(X_train, y_train)
y_pred = model.predict(X_test)

print(mean_squared_error(y_pred, y_test))

About

Library with implementation of several machine learning models. It is written in Python 3 with numpy.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors