This commit is contained in:
cetin 2024-01-26 11:34:42 +01:00
parent 02d26d974f
commit bfe5fe7d9d
5 changed files with 435 additions and 261 deletions

View File

@ -71,7 +71,8 @@ def fit_linear_regression_model(
X_test_model = np.delete(X_test_model, remove, axis=1)
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)
y_pred_test = lin_reg.predict(X_test_model)
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