3.3.2.1. Excercice: setting sparsity on diabetes

import numpy as np
import pylab as pl

from scikits.learn import cross_val, datasets, linear_model

diabetes = datasets.load_diabetes()
X = diabetes.data
y = diabetes.target

lasso = linear_model.Lasso()

alphas = np.logspace(-4, -1, 20)

Solution: ../examples/plot_cv_diabetes.py