Exercises and Projects
5.5. Exercises and Projects#
Exercise 5.1
Please hand write a report about the details of the math formulas for Logistic regression.
Exercise 5.2
CHOOSE ONE: Please use sklearn to apply the LogisticRegression to one of the following datasets. You may either use LogisticRegression or SGDClassifier.
the
irisdataset.the dating dataset.
the
titanicdataset.
Please in addition answer the following questions.
What is your accuracy score?
How many epochs do you use?
Plot the learning curve (accuracy vs training sizes).
Exercise 5.3
CHOOSE ONE: Please use keras to apply the LogisticRegression to one of the following datasets.
the
irisdataset.the dating dataset.
the
titanicdataset.
Please in addition answer the following questions.
What is your accuracy score?
How many epochs do you use?
What is the batch size do you use?
Plot the learning curve (loss vs epochs, accuracy vs epochs).
Analyze the bias / variance status.