Ridge Regression

In layman’s terms, Ridge regression adds one more term to linear regression’s cost function to reduce error. Ridge regression is a model-tuning method used to analyze data that suffer from multicollinearity. This method performs L2 regularization. When the issue of multicollinearity occurs, least-squares are unbiased, and variances are large; this results in predicted values being…

Read More

Logistic Regression from Scratch

Lets us try to implement logistic regression from scratch in python. Recommended to be read after the Neural Networks release. Importing necessary libraries The dataset we will be using is Pima-Indians-diabetes-database Whose objective is to predict whether or not a patient has diabetes diagnostically. y = data.Outcome.values x_data = data.drop([“Outcome”],axis=1)   After this, the data…

Read More