MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms

github.com/rushter/MLAlgorithms @main sqlite

repository ↗ · DeepWiki ↗
431 symbols 1,375 edges 72 files 98 documented · 23%
README

Machine learning algorithms

A collection of minimal and clean implementations of machine learning algorithms.

Why?

This project is targeting people who want to learn internals of ml algorithms or implement them from scratch.
The code is much easier to follow than the optimized libraries and easier to play with.
All algorithms are implemented in Python, using numpy, scipy and autograd.

Implemented:

Installation

        git clone https://github.com/rushter/MLAlgorithms
        cd MLAlgorithms
        pip install scipy numpy
        python setup.py develop

How to run examples without installation

        cd MLAlgorithms
        python -m examples.linear_models

How to run examples within Docker

        cd MLAlgorithms
        docker build -t mlalgorithms .
        docker run --rm -it mlalgorithms bash
        python -m examples.linear_models

Contributing

Your contributions are always welcome!
Feel free to improve existing code, documentation or implement new algorithm.
Please open an issue to propose your changes if they are big enough.

Core symbols most depended-on inside this repo

predict
called by 21
mla/fm.py
keys
called by 19
mla/neuralnet/parameters.py
predict
called by 18
mla/ensemble/tree.py
fit
called by 14
mla/pca.py
_setup_input
called by 11
mla/base/base.py
mean_squared_error
called by 9
mla/metrics/metrics.py
fit
called by 9
mla/svm/svm.py
accuracy
called by 8
mla/metrics/metrics.py

Shape

Method 255
Function 113
Class 63

Languages

Python100%

Modules by API surface

mla/neuralnet/layers/basic.py39 symbols
mla/neuralnet/optimizers.py30 symbols
mla/ensemble/gbm.py24 symbols
mla/neuralnet/layers/convnet.py19 symbols
mla/linear_models.py19 symbols
mla/neuralnet/nnet.py16 symbols
mla/metrics/metrics.py16 symbols
mla/neuralnet/constraints.py12 symbols
mla/metrics/tests/test_metrics.py12 symbols
mla/kmeans.py12 symbols
mla/gaussian_mixture.py12 symbols
mla/svm/kernerls.py11 symbols

Dependencies from manifests, versioned

autograd1.1.7 · 1×
matplotlib1.5.1 · 1×
numpy1.11.1 · 1×
scikit-learn0.18 · 1×
scipy0.18.0 · 1×
seaborn0.7.1 · 1×

For agents

$ claude mcp add MLAlgorithms \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact