Skip to content

Commit

Permalink
add params for xgboost
Browse files Browse the repository at this point in the history
  • Loading branch information
euxhenh committed Dec 9, 2023
1 parent 2cfab33 commit 317dc63
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_predictors.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,22 @@ def test_classifiers_x(X, classifier, key):
kmeans = cfg_kmeans.create()
kmeans(adata)

if classifier == "XGBClassifier":
kwargs = {
'n_estimators': 1,
'max_depth': 1,
}
else:
kwargs = {}

cfg = OmegaConf.create(
{
"_target_": f"src.grinch.{classifier}.Config",
"x_key": f"obsm.{OBSM.X_PCA}",
"y_key": f"obs.{OBS.KMEANS}",
"seed": 42,
"labels_key": f"obs.{key}",
**kwargs,
}
)
# Need to start using convert all for lists and dicts
Expand Down

0 comments on commit 317dc63

Please sign in to comment.