GithubHelp home page GithubHelp logo

innovator-arjun / ml-dl-algorithms-from-scratch Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 73.11 MB

Implemented machine learning algorithms intuition with gradient descents from scratch using NumPy and Pandas. Algorithms include Linear Regression variants, Naïve Bayes, KNN, PCA, SVC and Neural Network.

Jupyter Notebook 100.00%

ml-dl-algorithms-from-scratch's Introduction

Machine Learning Algorithms from Scratch

Implemented the algorithm with gradient descents from scratch using numpy and pandas

Algorithm Included are,

  1. Linear Regression-one feature
  2. Multilinear regression-Vectorized
  3. Multilinear regression-Closed form
  4. Polynomial Regression
  5. Logistic Regression
  6. Naive Bayes
  7. KNN Hard and Soft Parzen
  8. PCA- to reduce the dimension of the input feature
  9. SVC-Support Vector classifier
  10. Neural Network with relu,sigmoid, tanh, leaky relu activations

My Biggest Learning,

  1. Normalize the data for linear models, if not the weights and bias will explode. it will also be helpful for the model to compare and contrast with the other input feature
  2. Each and every alorithm has its own advantage and disadvantage, understand it more so that you will know why so models perform good while other not EG:linearly seperable and non linearly seperable
  3. Every algorthim has assumption like Independent Identical Distributed(IID) , gaussian. if the assumption fails in the dataset, the algorithm will perfom poorly
  4. Use validation set to select the right hyper parameters(these parameters changes from problem to problem) and you can balance between bias and variance. Make sure there is no data leakage
  5. Gradients are important for the model to learn the right parameters with the perfect learning rate. If your learning rate is high, the gradient will diverge. If your learning rate is too less it take more epoches to converge
  6. Normalization is important in Neural Network as it reduces the time and memory during the computation of the dot product during the forward and back propagation which helps the model to converge faster and can achieve high accuracy in less epochs when compared with not normalized data.

ml-dl-algorithms-from-scratch's People

Contributors

innovator-arjun 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.