This repo aims to provide minimal implementations of machine learning algorithms using Python standard libraries and object-oriented programming.
Currently, the repo contains implementations of the following algorithms:
- Linear Regression
- Logistic Regression
To run, execute:
uv run -m <algorithm>.main
Where <algorithm>
is the name of the algorithm you want to run.
The data is read from <algorithm>/data.csv
, and the results are printed to the console.
Note
These implementations are merely intended to be educational resources, and would not scale well to large datasets. If you are looking for optimized performance, a number of software solutions and auxiliary libraries already exist:
- scikit-learn
- numpy
- scipy
- pandas
- ...