Skip to content

Commit

Permalink
fix seed
Browse files Browse the repository at this point in the history
  • Loading branch information
euxhenh committed Dec 9, 2023
1 parent de13e7f commit e8d40df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_predictors.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,9 @@ def test_classifiers_x(X, classifier, key):

def test_xgboost():
from sklearn.datasets import make_classification
X, y = make_classification(n_samples=100, n_features=2,
n_informative=2, n_redundant=0)
X, y = make_classification(
n_samples=100, n_features=2, n_informative=2, n_redundant=0,
random_state=42, n_clusters_per_class=1, flip_y=False, class_sep=2.0)
adata = AnnData(X)
adata.obs['y'] = y

Expand Down

0 comments on commit e8d40df

Please sign in to comment.