Homework 3

In this homework you will:

Logistic Regression

Recall that logistic regression learns a weight vector such that $wx >> 0$ for positive instances and $wx << 0$ for negative instances. Below you'll look at the weights that were learned and think about which features are important.

Remeber that the implementation of multi-class logistic regression in scikit is one-vs-all.

Load the data

The wine dataset has 13 features that are real valued and all positive. That last bit is important for what follows. The goal is to classify a sample of wine characterized by its 13 featues into one of three types of wines.

Train a classifier and look at the feature weights

The plot below shows the weights associated with all 13 features for each of the three classes. The are overlaid so that you can compare weights across classes.

Task 1 - Answer the following questions

Given the plot above, give a brief answer (a few sentences to a paragraph) to each of the following questions.

Task 2 - Answer the following questions