python机器学习库sklearn入门(1)工具使用(数据分割、模型评估),来自kaggle竞赛
fromsklearn.metricsimportmean_absolute_error#绝对平均误差评估模块fromsklearn.model_selectionimporttrain_test_split#训练集测试集分割模块#splitdataintotrainingandvalidationdata,forbothfeaturesandtarget#Thesplitisbasedonara