运行代码,出现TypeError: fit() missing 1 required positional argument: 'y',对其进行修改-CSDN博客

网站介绍:文章浏览阅读8.6w次,点赞15次,收藏11次。from sklearn.datasets import load_bostonboston = load_boston()print(boston.DESCR)#导入model_selection进行数据分割from sklearn.model_selection import train_test_splitimport numpy as npx = boston.datay