Skip to content

Commit

Permalink
Added check to abort on train mode with PerfectClassifier, UnityClass…
Browse files Browse the repository at this point in the history
…ifier, and FitProbClassifier
  • Loading branch information
OmegaLambda1998 committed May 14, 2021
1 parent b51d5aa commit 69db74b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pippin/classifiers/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ def get_num_ranseed(sim_task, lcfit_task):
else:
mode = Classifier.PREDICT

# Validate that train is not used on certain classifiers
if mode == Classifier.TRAIN:
assert name not in ["PerfectClassifier", "UnityClassifier", "FitProbClassifier"], f"Can not use train mode with {name}"

needs_sim, needs_lc = cls.get_requirements(options)

runs = []
Expand Down

0 comments on commit 69db74b

Please sign in to comment.