y = df[target_name].as_matrix()
// Create the train and test data
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
// Instantiate the linear model and visualizer
lasso = Lasso()
After Change
y = df[target_name].as_matrix()
// Instantiate the linear model and visualizer
alphas = np.logspace(-10, 1, 400)
visualizer = AlphaSelection(LassoCV(alphas=alphas))
visualizer.fit(X, y)
g = visualizer.poof(outpath="images/alpha_selection.png")