Skip to content

Commit

Permalink
Merge pull request #56 from Samreay/Issue22
Browse files Browse the repository at this point in the history
Added check to abort on train mode with PerfectClassifier, UnityClass…
  • Loading branch information
OmegaLambda1998 authored May 14, 2021
2 parents b51d5aa + 69db74b commit 98e6194
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 98e6194

Please sign in to comment.