Skip to content

Commit 1785b85

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dca76fc commit 1785b85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

synthetic weather-forecasting

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ results = {}
8787
for model_name, model in models.items():
8888
# Train the model
8989
model.fit(X_train, y_train)
90-
90+
9191
# Make predictions
9292
y_pred = model.predict(X_test)
93-
93+
9494
# Evaluate the model
9595
mae = mean_absolute_error(y_test, y_pred)
9696
mse = mean_squared_error(y_test, y_pred)
9797
r2 = r2_score(y_test, y_pred)
98-
98+
9999
# Store the results
100100
results[model_name] = {'MAE': mae, 'MSE': mse, 'R2 Score': r2}
101-
101+
102102
# Print evaluation metrics
103103
print(f"{model_name} Evaluation:")
104104
print(f"MAE: {mae:.2f}")

0 commit comments

Comments
 (0)