Logistic Regression
Logistic Regression
Does it work?
What happens to the regression line when we get more samples?
Logistic Regression
What??
• So for n examples:
5. Making predictions
pd.get_dummies()
• pandas.get_dummies() is used for data
manipulation. It converts categorical data into
dummy or indicator variables.
• Machine learning models cannot interpret
categorical data hence it needs to be
translated to numerical data.
• This process is referred to as dummy variable
encoding
• In our previous example a random sample of
five rows looks like this
• with L2 regularization.
• With L2 regularization:
• L1:
• L2: