Skip to main content

Implementations of most popular machine learning algorithms

Project description

About this repo

This repository contains my own implementations of the most popular machine learning models. It also has scripts for data preproccessing (datasets titanic and GaltonFamilies). For classification, I implemented my own class for nested cross validation. There are functions to evaluate model using confusion matrix (calculating accurancy, sensitivity, specificity, precision etc.) as well as to draw ROC curve.

Note

All of the models and validation were implemented by myslef, without using sklearn library. They were done for learning purposes. There is a seperate file named sklearn.py, in which I focused on exploring sklearn library

Models in this repo

  1. Linear models
  • Linear Regression
  • Logistic Regression
  1. Trees
  • Regression Tree
  • Decision Tree
  • Random Forest
  1. Boosting
  • Adaboost
  • Gradient boosting
  • Extreme Gradient Boosting
  1. SVM
  • SVM primal bez jądra
  • SVM dual z jądrem
  1. Naive Bayes
  2. K-nearest-neighbours

Python package

This repo can be installed as a package via command

pip install machine-learning-models
  1. Using only models
# Adaboost
from machine_learning.src.Adaboost.AdaboostModel import Adaboost
# XGBoost
from machine_learning.src.ExtremeGradinetBoost.XGBoostModel import XGBoost
# Gboost
from machine_learning.src.GradientBoosting.GradientBoostingModel import GBoost
# KNN
from machine_learning.src.KNearestNeighbours.KNearestNeighboursModel import KNearestNeighbours
# Linear Regression
from machine_learning.src.LinearRegression.LinearRegressionModel import LinearRegressionModel
# Logistic Regression
from machine_learning.src.LogisticRegression.LogisticRegressionModel import LogisticRegression
# Naive Bayes
from machine_learning.src.NaiveBayes.NaiveBayesModel import NaiveBayes
# Random Forest
from machine_learning.src.RandomForest.RandomForestModel import RandomForest
# DEcision and Regression Tree
from machine_learning.src.RandomForest.Tree import DecisionTree
from machine_learning.src.RegressionTree.RegressionTreeModel import RegressionTree
# SVM
from machine_learning.src.SVM.SvmModel import SVM
from machine_learning.src.SVM.SvmModel import PrimalSVM

Author

Małgorzata Grzanka

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

machine_learning_models-0.0.2.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

machine_learning_models-0.0.2-py3-none-any.whl (75.5 kB view details)

Uploaded Python 3

File details

Details for the file machine_learning_models-0.0.2.tar.gz.

File metadata

File hashes

Hashes for machine_learning_models-0.0.2.tar.gz
Algorithm Hash digest
SHA256 904acd2658360273f72225bf0f99dc5836091d95aa87e4585bfbd2fc80f0d7ac
MD5 ea04e47b7f9b39576360dc6c6f4ed0a6
BLAKE2b-256 61e30195fb29386bb4d1b34b38d179a3d95979adae647b37af22b714615f5c98

See more details on using hashes here.

File details

Details for the file machine_learning_models-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for machine_learning_models-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aae086e882b25e4ffd856c1e5f4f6214b1b8748d381fbdd48188424855c80546
MD5 4ba70212899d0dce2cc9187a240bc466
BLAKE2b-256 6f779f72210af06dafe06bb7b34bd4420bad96174f51f2f43af2742997db977f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page