Skip to content

Commit

Permalink
Bug with pos_group at training
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Jul 18, 2024
1 parent 66573e8 commit 8bf60d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spare_scores/spare_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def spare_train(
df: Union[pd.DataFrame, str],
to_predict: str,
model_type: str = "SVM",
pos_group: str = "",
pos_group: Any = "",
key_var: str = "",
data_vars: list = [],
ignore_vars: list = [],
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_spare_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_spare_train(self):

status, result = result["status"], result["data"]

metadata = result[1] # For some reason, this is None
metadata = result[1]
self.assertTrue(status == "OK")
self.assertTrue(metadata["mdl_type"] == self.model_fixture[1]["mdl_type"])
self.assertTrue(metadata["kernel"] == self.model_fixture[1]["kernel"])
Expand Down

0 comments on commit 8bf60d5

Please sign in to comment.