A minimal implementation of scikit-learn like functionalities
Project description
Mini-Scikit-Learn
Mini-Scikit-Learn is a lightweight machine learning library inspired by Scikit-Learn. This project aims to implement essential machine learning algorithms, preprocessing techniques, model evaluation methods, and utilities to provide a basic yet functional machine learning toolkit.
Project Structure
The project is organized into several directories, each containing Python modules and Jupyter notebooks for different aspects of machine learning:
- ensemble: Contains implementations of various ensemble methods including Random Forest.
- metrics: Includes modules for evaluating model performance such as accuracy, precision, recall, F1 score, and confusion matrix.
- model_selection: Features tools for model selection and hyperparameter tuning, including train-test split and GridSearchCV.
- neural_networks: Dedicated to basic neural network architectures.
- preprocessing: Holds preprocessing utilities like data scaling and encoding.
- supervised_learning: Contains implementations of supervised learning algorithms like Logistic Regression, KNN, Decision Trees, etc.
- utilities: Utility functions and classes used across the project.
Each directory contains Jupyter notebooks that demonstrate the testing of the respective modules implemented in the project.
Notebooks
- ClassificationMetricsTest.ipynb: Tests and comparisons of classification metrics.
- DecisionTreeClassifier.ipynb: Demonstrations of the Decision Tree classifier.
- DecisionTreeRegressor.ipynb: Demonstrations of the Decision Tree regressor.
- GridSearchCVTest.ipynb: Usage examples for GridSearchCV.
- Other notebooks follow a similar naming convention, each focusing on different components of the library.
Installation
To use Mini-Scikit-Learn, clone this repository to your local machine. Ensure that you have Python installed, along with the necessary libraries.
git clone https://github.com/Basma-Arnaoui/Mini-Scikit-Learn.git
cd Mini-Scikit-Learn
Usage
To use the components of Mini-Scikit-Learn, you can import the required modules into your Python scripts or Jupyter notebooks. For example:
from supervised_learning.classification import LogisticRegression
from model_selection import GridSearchCV
# Your code to use these components goes here
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 cs_mini_scikit_learn-0.1.1.tar.gz
.
File metadata
- Download URL: cs_mini_scikit_learn-0.1.1.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9315d06157fbeca698ee7e80dd46d52cd1e54eedf829b988ff0880a19c517fc |
|
MD5 | 2aef28e62ae6677efa79b63c5506f131 |
|
BLAKE2b-256 | 314e59cd9e723525423226439b8eecdeb3fde27fa07672f06a27a9eae514196e |
File details
Details for the file cs_mini_scikit_learn-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: cs_mini_scikit_learn-0.1.1-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9d7c939011c03ffee978ae13982e10ef261b877e5f4f345a2c6e17df277bf6 |
|
MD5 | 952c421c799c0be115d95916bbc02ca8 |
|
BLAKE2b-256 | 552b839fbf664c7307c1c91f623c600fb9b04369016891ffc771622ea0a3665b |