Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test model #18

Merged
merged 1 commit into from
May 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions tests/unit_tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def test_model_init():
max_iter=1,
direction="score",
override=True,
subset_max_train=500,
shuffle=False,
)

Expand All @@ -29,7 +28,6 @@ def test_model_init():
assert model.max_iter == 1
assert model.direction == "score"
assert model.override
assert model.subset_max_train == 500
assert not model.shuffle
assert not model.is_trained

Expand All @@ -48,7 +46,6 @@ def test_perc_init():
max_iter=1,
direction="score",
override=True,
subset_max_train=500,
)
assert isinstance(model.estimator, GridSearchCV)
assert isinstance(model.estimator.estimator, LinearSVC)
Expand All @@ -57,7 +54,6 @@ def test_perc_init():
assert model.max_iter == 1
assert model.direction == "score"
assert model.override
assert model.subset_max_train == 500


def test_model_fit(psms):
Expand Down Expand Up @@ -87,7 +83,6 @@ def test_model_fit_large_subset(psms):
LogisticRegression(),
train_fdr=0.05,
max_iter=1,
subset_max_train=2_000_000_000,
)
model.fit(psms)

Expand Down