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

Remove test checking that TPOT-NN errors for multiclass input #1177

Draft
wants to merge 1 commit into
base: nn
Choose a base branch
from
Draft
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
11 changes: 0 additions & 11 deletions tests/nn_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,6 @@ def test_nn_conf_dict():
clf = TPOTClassifier(config_dict=classifier_config_nn)
assert clf.config_dict == classifier_config_nn

def test_nn_errors_on_multiclass():
"""Assert that TPOT-NN throws an error when you try to pass training data with > 2 classes. (NN)"""
clf = TPOTClassifier(
random_state=42,
population_size=1,
generations=1,
config_dict=classifier_config_nn,
template='PytorchLRClassifier'
)
assert_raises(ValueError, clf.fit, multiclass_X, multiclass_y)

def test_pytorch_lr_classifier():
"""Assert that the PytorchLRClassifier model works. (NN)"""
clf = nn.PytorchLRClassifier(
Expand Down