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
- Linear models
- Linear Regression
- Logistic Regression
- Trees
- Regression Tree
- Decision Tree
- Random Forest
- Boosting
- Adaboost
- Gradient boosting
- Extreme Gradient Boosting
- SVM
- SVM primal bez jądra
- SVM dual z jądrem
- Naive Bayes
- K-nearest-neighbours
Python package
This repo can be installed as a package via command
pip install machine-learning-models
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file machine_learning_models-0.0.2.tar.gz
.
File metadata
- Download URL: machine_learning_models-0.0.2.tar.gz
- Upload date:
- Size: 61.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 904acd2658360273f72225bf0f99dc5836091d95aa87e4585bfbd2fc80f0d7ac |
|
MD5 | ea04e47b7f9b39576360dc6c6f4ed0a6 |
|
BLAKE2b-256 | 61e30195fb29386bb4d1b34b38d179a3d95979adae647b37af22b714615f5c98 |
File details
Details for the file machine_learning_models-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: machine_learning_models-0.0.2-py3-none-any.whl
- Upload date:
- Size: 75.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aae086e882b25e4ffd856c1e5f4f6214b1b8748d381fbdd48188424855c80546 |
|
MD5 | 4ba70212899d0dce2cc9187a240bc466 |
|
BLAKE2b-256 | 6f779f72210af06dafe06bb7b34bd4420bad96174f51f2f43af2742997db977f |