| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
 |  | |||
A lightweight, educational machine learning library reimplementing core algorithms from scratch, inspired by scikit-learn. Developed by IFRI AI students for the Concepts & Applications of Machine Learning course.
Install from PyPI:
pip install ifri-mini-ml-libOr install from source:
git clone https://github.com/IFRI-AI-Classes/ifri_mini_ml_lib.git
cd ifri_mini_ml_lib
pip install -e .Here's a simple example using the KNN classifier:
from ifri_mini_ml_lib.classification import KNN
# Example data
data = [[0, 0], [1, 1], [0, 1], [1, 0]]
labels = [0, 1, 1, 0]
# Initialize and fit the model
knn = KNN(k=3)
knn.fit(data, labels)
# Predict
prediction = knn.predict([[0.9, 0.8]])
print(prediction)Full documentation is available at: ifri_mini_ml_lib.github.io
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.
Thanks to the IFRI AI students and faculty who contributed to this project.
| Back | FazBrowse Home | New Git URL |