Skip to main content

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


Download files

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

Source Distribution

cs_ob_mini_scikit_learn-0.1.0.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

cs_ob_mini_scikit_learn-0.1.0-py3-none-any.whl (47.6 kB view details)

Uploaded Python 3

File details

Details for the file cs_ob_mini_scikit_learn-0.1.0.tar.gz.

File metadata

File hashes

Hashes for cs_ob_mini_scikit_learn-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31b27ed743bcaa63f54d897201c27eeee1bf06790bd99e635110556935d7c776
MD5 d46151ff791acf344d1c72f7ae064a5f
BLAKE2b-256 6f6d9037368cbe6a0f99ec53451fb003d415606a35ad96f849bac36560f2066f

See more details on using hashes here.

File details

Details for the file cs_ob_mini_scikit_learn-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cs_ob_mini_scikit_learn-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3000822a3b4baaeecf974bc29e8b52ec20ce926423b613249741721d37d11ef7
MD5 ac1d00d74aac749d8b886d3d01d921e4
BLAKE2b-256 f69bec25fe6ef7fa2a4a05c4999f3eebfadd743bb486b3c92d57b1ff515c436e

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