/Logistic-regression-from-scratch

Building Logistic Regression from scratch

Primary LanguagePython

LOGISTIC REGRESSION FROM SCRATCH


  • Generated data for training and testing initial

  • Picked up a sigmoid link function

  • Calculated the log likelihood: Log likelihood can be viewed as a sum over all the training data point log likelihood

  • Building logistic regression function with gradient calculation gradient

  • Calculating the accuracy from scratch

  • Plotting results solved

  • ACCURACY => 98