📅  最后修改于: 2022-03-11 14:45:30.707000             🧑  作者: Mango
reg = linear_model.LinearRegression() <--- #all i did was add parentheses
xTrain, xTest, yTrain, yTest = train_test_split(dfx, dfy, test_size=0.33, random_state=42)
reg.fit(xTrain, yTrain)