Untitled

mail@pastecode.io avatar
unknown
python
a year ago
255 B
4
Indexable
Never
X = df.filter(regex='interest*')
y = df['ratings']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
regModel = LinearRegression()
regModel.fit(X_train, y_train)
y_pred = regModel.predict(X_test)\

# hierna kijken naar r square enzo