Giter Club home page Giter Club logo

python-machine-learning-algorithms's Introduction

Machine Learning Algorithms

From Scratch in Python

WHY?

I needed to brush up on my machine learning algorithm theory and the best way to learn is by doing, so I decided to write some popular algos.

I'm building them all from scratch because using something like scikit doesn't really help you understand the mechanics of algorithms. I learn best by understanding the inner workings of things, I think it's huge in developing an intuitive understanding the process.

Learn the micro to understand the macro.

HOW?

I want the code to be as free from external libraries as possible, even if there are time and space optimisations. Being able to look at the code and see exactly what's happening is much more valuable in this circumstance.

There are some exceptions to this rule. The first is for data visualisation, it's not core to the function of any of the algos, and is mostly for debugging. The second is certain math functions. While it's easy to implement these by hand, they are more easily readable and don't detract from understanding the inner workings. That said I still wrote many from scratch. The third is unit testing. I could just litter a module with try/excepts and assert statements, but getting used to unittest seemed valuable, and it simplifies things a bit.

WHAT?

These algorithms aren't meant to be pretty, they're primarily a learning excercise. The documentation will be inconsistent and sparse, but the bones of the algo should be there.

Right now I have implemented the following algorithms:

  • K Nearest Neighbour
  • Weighted K Nearest Neighbour
  • Single Variable Linear Regression
  • Multiple Variable Linear Regression

On my list of algorithms to explore:

  • Decision Trees
  • Logistic Regression
  • Naive Bayes
  • PCA Techniques
  • ICA Techniques

python-machine-learning-algorithms's People

Contributors

michaelphartmann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.