Skip to content

GeorgeSeif/Python-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Machine Learning

Description

A set of machine learing algorithms implemented in Python 3.5. Please also see my related repository for Python Data Science which contains various data science scripts for data analysis and visualisation.

Programs can one of three implementations:

  1. Algorithm is implemented from scratch in Python *
  2. Algorithm is implemented using Scikit Learn * *
  3. Algorithm is implemented both ways * * *

The included programs are:

  • Regression:

    • Linear Regression * * *
    • Neural Network Regression * *
    • Decision Tree Regression * * *
  • Classification:

    • Logistic Regression for Classification * * *
    • Logistic Regression for Classification with PCA * * *
    • Naive Bayes Classification * * *
    • Support Vector Machine Classification * *
    • Neural Network Classification * *
    • Decision Tree Classification * * *
    • Random Forest Classification * * *
  • Clustering:

    • K-Means Clustering * * *
    • K-Nearest-Neighbor * * *
    • Mean-Shift Clustering * * *
    • K-Mediods Clustering *
    • DBSCAN Clustering * * *

Helpers

In addition the the main algorithm files, we have the following set of helper functions in the "ml_helpers.py" file:

  1. Train and Test data splitting
  2. Random shuffling of data
  3. Compute Euclidean Distance
  4. Compute Mean and Variance of features
  5. Normalize data
  6. Divide dataset based on feature threshold
  7. Retrieve a random subset of the data with a random subset of the features
  8. Compute entropy
  9. Compute Mean Squared Error
  10. Sigmoid function
  11. Derivative of the sigmoid function
  12. Compute the covariance matrix
  13. Perform PCA dimensionality reduction
  14. Gaussian function 1D
  15. Gaussian function 2D

Requirements

  1. Python 3.5
  2. Numpy
  3. Scipy
  4. Scikit Learn
  5. Matplotlib

Installation

The above packages can be installed by running the commands listed in the "install.txt" file