fix: add ensemble test, change to "use cross-validation if possible" in workflow spec (#634)

* change to "use cross-validation if possible" in workflow spec

* Limit the evaluation indicator to only one

* add metric tips

* string change
This commit is contained in:
XianBW
2025-02-24 20:28:32 +08:00
committed by GitHub
parent 20bd55c3a5
commit 54cd73eb85
2 changed files with 3 additions and 2 deletions
@@ -95,5 +95,6 @@ assert model_set_in_scores == set({{model_names}}).union({"ensemble"}), (
f"The scores dataframe does not contain the correct model names as index.\ncorrect model names are: {{model_names}} + ['ensemble']\nscore_df is:\n{score_df}"
)
assert score_df.index.is_unique, "The scores dataframe has duplicate model names."
assert len(score_df.columns) == 1, f"The scores dataframe should have exactly one column for the scores of the evaluation indicator, but has these columns: {score_df.columns.tolist()}"
print("Ensemble test end.")