Skip to content
Snippets Groups Projects
Commit 0748931e authored by dmt's avatar dmt
Browse files

Change order of attributes.

parent f939da21
No related branches found
No related tags found
No related merge requests found
......@@ -60,12 +60,10 @@ class PragmaticMachineLearningModel:
meta: Metadata,
model,
learnblock):
if meta.pre_image == 400:
raise Exception
self.meta = meta
self.model = model
self.learnblock = learnblock if self.tier > 1 else None
self.origin = learnblock.origin
self.learnblock = learnblock if self.tier > 1 else None
def __str__(self) -> str:
return self.uid
......@@ -247,7 +245,7 @@ class Reconstructor:
meta: Metadata = None) -> PragmaticMachineLearningModel:
# Check if learnblock has enough features
if not (learnblock.learn_cols > 0):
if not (learnblock.learn_cols >= 2):
raise NotEnoughFeaturesWarning()
# Specify the models which should be trained
......@@ -445,4 +443,3 @@ def determine_winner(
winner = model
return winner
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment