Custom_ML_Suite
Custom_ML_Suite is a beginner-friendly Machine Learning utility library built completely from scratch using pure Python.
This project focuses on understanding the mathematical foundations of Machine Learning by manually implementing core ML algorithms, preprocessing methods, distance metrics, activation functions, statistical operations, and evaluation metrics without using external ML libraries like scikit-learn.
Features
- Pure Python implementation
- Beginner-friendly code structure
- Mathematical formulas included
- Well-commented educational code
- Modular package structure
- ML utilities from scratch
- Edge-case handling
- Easy to understand and extend
Modules Included
1. activations.py
Activation functions used in neural networks.
Functions
- sigmoid()
- relu()
- tanh()
- softmax()
- log_loss()
2. distances.py
Distance and similarity metrics.
Functions
- euclidean_distance()
- manhattan_distance()
- minkowski_distance()
- cosine_similarity()
- hamming_distance()
3. preprocessing.py
Data preprocessing and scaling methods.
Functions
- standardization()
- mean()
- min_max_scaling()
- range()
- normalization()
4. stats.py
Basic statistical operations.
Functions
- mean()
- variance()
- std_dev()
- covariance()
- correlation()
5. metrics.py
Machine Learning evaluation metrics.
Functions
- accuracy_score()
- precision_score()
- recall_score()
- f1_score()
- confusion_matrix()
- mean_absolute_error()
- mean_squared_error()
- root_mean_squared_error()
- r2_score()
- binary_crossentropy()
6. model_selection.py
Dataset splitting and validation utilities.
Functions
- train_test_split()
- shuffle_data()
- batch_iterator()
- k_fold_split()
- stratified_split()
7. linear_model.py
Basic regression models and optimization.
Functions
- linear_regression()
- predict()
- gradient_descent()
- logistic_regression()
- logistic_update()
8. neighbors.py
K-Nearest Neighbors utilities.
Functions
- knn_distance()
- knn_predict()
- probability()
9. tree.py
Basic Decision Tree utilities.
Functions
- gini_impurity()
- entropy()
- information_gain()
- best_split()
- build_tree()
- predict_tree()
- majority_vote()
Project Structure
Custom_ML_Suite/
│
├── examples/
│ ├── demo.py
│ └── Formula.py
│
├── src/
│ └── Custom_ML_Suite/
│ ├── __init__.py
│ ├── activations.py
│ ├── distances.py
│ ├── linear_model.py
│ ├── metrics.py
│ ├── model_selection.py
│ ├── neighbors.py
│ ├── preprocessing.py
│ ├── stats.py
│ └── tree.py
│
├── tests/
│ └── test_all.py
│
├── README.md
├── pyproject.toml
└── .gitignore
# Authors
Aryan Kakade
Kishor Handge
Metadata
Release files for mak-mini-ml 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mak_mini_ml-0.1.5.tar.gz | 19.9 kB | Without provenance | Details for mak_mini_ml-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mak_mini_ml-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for mak_mini_ml-0.1.5-py3-none-any.whl |
Total release size: 42.0 kB
Release files / mak_mini_ml-0.1.5.tar.gz
| Download URL | mak_mini_ml-0.1.5.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
77a02c17e44e46bd07e27ef29051fd9933d500abcbfba194122a298a0b64eaac
|
|
BLAKE2b-256 checksum How to use checksums |
05c36d335c2e317dfeff140e4d018996e3c0087462d98aac1452f6e2ca546a24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / mak_mini_ml-0.1.5-py3-none-any.whl
| Download URL | mak_mini_ml-0.1.5-py3-none-any.whl |
|---|---|
| Size | 22.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
875db3a8fde9e3a97b3b84001770f5a69efc8075e82c3bf683208eefb0a22517
|
|
BLAKE2b-256 checksum How to use checksums |
318b125f874907fa0a61f8f1b733293fb74b44bdf51019bc3c0f59c719548a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for mak-mini-ml 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.