上传者: 38616809
|
上传时间: 2021-11-06 20:03:12
|
文件大小: 313KB
|
文件类型: -
运行环境:win10 64位 py 3.6 pycharm 2018.1.1
导入对应的包和数据
import matplotlib.pyplot as plt
import numpy as np
from sklearn import datasets,linear_model,cross_validation,svm
def load_data_regression():
diabetes = datasets.load_diabetes()
return cross_validation.train_test_split(diabetes,diabetes.target,te