2018.1.13

2018.1.13

reg_1_1 = linear_model.Ridge(alpha=1)
reg_1_1.fit(first_set, labels)
print(reg_1_1.coef_)
scores_Reg_1_1 = cross_val_score(reg_1_1, first_set, labels, cv=10)
print(scores_Reg_1_1)
reg_1_5 = linear_model.Ridge(alpha=.5)
reg_1_5.fit(first_set, labels)
print(reg_1_5.coef_)
scores_Reg_1_5 = cross_val_score(reg_1_5, first_set, labels, cv=10)
print(scores_Reg_1_5)

2018.1.13_第1张图片

你可能感兴趣的:(琉璃神社)