Skip to content

This is an attempt to summarize different traditional machine learning methods that I have learned in graduate school.

Notifications You must be signed in to change notification settings

being-aerys/Python_Numpy_Implementations_of_Machine_Learning_Algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Learning Algorithms

This repo is my personal effort to implement several supervised and unsupervised learning algorithms using only python and numpy. While directly using ML libraries is efficient at prototyping, it skips the challenges that arise while implementing these algorithms - vectorization is one good example for this. This has inspired me to implement these algorithms and tackle these challenges first-hand. I have used some ML libraries but solely for auxiliary tasks like normalization. This is a work in progress and I will add more algorithms over time.

Following is an example LDA projection.

Dependencies

This project requires python and the following python libraries.

  1. pandas
  2. numpy
  3. seaborn
  4. matplotlib
  5. scikit-learn

It also requires a software that can open and execute a Jupyter Notebook.

Installation

  1. Clone the repo or download using the url: https://github.com/intelaashish/Machine_Learning_Algorithms_Collection.git
  2. Download the corresponding necessary data from the web for each jupyter notebook file.
  3. Navigate to the directory that contains the corresponding notebook.
  4. Run the following command:
        jupyter notebook
     
    
  5. This will open a tab on a web browser.
  6. Click on the notebook file corresponding to the machine learning method that you want to explore.

Algorithms Covered/ In Progress

Supervised Algorithms

  1. kNN
    a. Vanilla kNN
    b. Priority Queue kNN
  2. KD Tree
    a. 1NN Search and Classification
    b. kNN Search and Classification
  3. Linear Regression
  4. Naive Bayes
    a. Multinomial Naive Bayes
    b. Gaussian Naive Bayes
  5. Perceptron
  6. Support Vector Machines
    a. Hard Margin SVM in Dual Form using QP Solver
    b. Hard and Soft Margin SVM in Primal/ Natural form using Gradient Descent

Unsupervised Algorithms

  1. Dimensionality Reduction
    a. PCA
    b. LDA

    PS: Some helper code in the repo could have been generated using Generative AI tools like ChatGPT. Nonetheless, the algorithm implementations were implemented by the owner from scratch.

About

This is an attempt to summarize different traditional machine learning methods that I have learned in graduate school.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published