Machine Learning Algorithms implemented from scrath with numpy.
Machine Learning Algorithms implemented from scrath with numpy.
- Clone the repository
git clone https://github.com/raulorteg/MLfromScrath - Create virtual environment:
- Update pip
python -m pip install pip --upgrade - Install
virtualenvusing pippython -m pip install virtualenv - Create Virtual environment
virtualenv MLfromScrath - Activate Virtual environment (Mac OS/Linux:
source MLfromScrath/bin/activate, Windows:MLfromScrath\Scripts\activate) - (Note: to deactivate environemt run
deactivate)
- Install requirements on the Virtual environment
python -m pip install -r requirements.txt
See the examples classifying_knearest.py, clustering_kmeans.py
K-means clustering visualization (10000 2-dimensional samples, 10 clusters)
- K-means clustering
- K-nearest neighbors classifier