fri
This commit is contained in:
parent
02d26d974f
commit
bfe5fe7d9d
Binary file not shown.
@ -71,7 +71,8 @@ def fit_linear_regression_model(
|
|||||||
X_test_model = np.delete(X_test_model, remove, axis=1)
|
X_test_model = np.delete(X_test_model, remove, axis=1)
|
||||||
poly_features = np.delete(poly_features, remove)
|
poly_features = np.delete(poly_features, remove)
|
||||||
|
|
||||||
lin_reg = LinearRegression(fit_intercept=fit_intercept) # Lasso(alpha=0.01)
|
# lin_reg = Lasso(alpha=0.01, fit_intercept=fit_intercept)
|
||||||
|
lin_reg = LinearRegression(fit_intercept=fit_intercept)
|
||||||
lin_reg.fit(X_train_model, y_train)
|
lin_reg.fit(X_train_model, y_train)
|
||||||
y_pred_test = lin_reg.predict(X_test_model)
|
y_pred_test = lin_reg.predict(X_test_model)
|
||||||
print(f"Parameterisation for {target_feat}:")
|
print(f"Parameterisation for {target_feat}:")
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user