Skip to content

Commit

Permalink
Merge pull request #10 from sverchkov/show-err-name
Browse files Browse the repository at this point in the history
Show metric name in measure_model_err output
  • Loading branch information
qualiaMachine authored Jun 20, 2024
2 parents 79ca967 + 7459f1e commit 2044a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/regression_predict_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ def measure_model_err(y: Union[np.ndarray, pd.Series], baseline_pred: Union[floa

# Create a DataFrame to store the error values
errors_df = pd.DataFrame({
'Baseline Error': [baseline_err],
'Train Error': [train_err],
'Test Error': [test_err]
f'Baseline {metric}': [baseline_err],
f'Train {metric}': [train_err],
f'Test {metric}': [test_err]
})

return errors_df
Expand Down

0 comments on commit 2044a11

Please sign in to comment.