Skip to content

Commit

Permalink
FIX relax failure condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Mar 24, 2017
1 parent fd89569 commit f954119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autosklearn/automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,8 @@ def _load_models(self):
else:
model_names = self._backend.list_all_models(seed)

if len(model_names) == 0:
if len(model_names) == 0 and self._resampling_strategy not in \
['partial-cv', 'partial-cv-iterative-fit']:
raise ValueError('No models fitted!')

def score(self, X, y):
Expand Down

0 comments on commit f954119

Please sign in to comment.