/machine-learning-assignment

Collection of machine learning algorithms

Primary LanguagePython

Machine Learning Assignment

Collection of machine learning algorithms written from scratch with numpy & pandas. Most code here is written to understand how they work. It is not optimized for production. Use it at your own risk.

Setup

Prerequisites:

  1. Python >= 3.x
  2. Graphviz >= 2.40 (on Ubuntu: sudo apt install graphviz)

Setup steps:

  1. Clone this repo
  2. Install dependencies pip install -r requirements.txt

Table of contents

  1. Decision Tree
  2. Naive Bayes Classifier
  3. Bayesian Network with Expectation-Maximization
  4. Join-Distribution Bayes Classifier
  5. Linear Regression vs Normal Equation
  6. Logistic Regression
  7. Hidden Markov Model
  8. Artificial Neural Network

License

The MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.