Skip to content

Commit

Permalink
Add minimum amount of packages to allow training
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmoura committed Aug 13, 2016
1 parent 0006831 commit c52cd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apprecommender/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def train(cls):
try:
MachineLearning.PKGS_CLASSIFICATIONS = ml_data.create_data(
labels)
if len(MachineLearning.PKGS_CLASSIFICATIONS) > 0:
if len(MachineLearning.PKGS_CLASSIFICATIONS) >= 10:
cls.run_train(MachineLearning.PKGS_CLASSIFICATIONS)
else:
raise MachineLearningTrainError()
Expand Down

0 comments on commit c52cd97

Please sign in to comment.