1from sklearn import datasets, linear_model
2from sklearn.model_selection import cross_val_score
3diabetes = datasets.load_diabetes()
4X = diabetes.data[:150]
5y = diabetes.target[:150]
6lasso = linear_model.Lasso()
7print(cross_val_score(lasso, X, y, cv=3))