Skip to content
Snippets Groups Projects
Commit 2c51996d authored by dmt's avatar dmt
Browse files

Add abbreviation attribute to construction machine learning models.

parent a774bc10
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ class ConstructionClusteringMLModel(MachineLearningModel):
def __init__(self, model):
self.__model = model
self._cluster = 2
self.abbreviation = self.__model.__class__.__name__[0:3]
def get_labels(self):
return self.__model.__getattribute__(
......@@ -100,6 +101,7 @@ class ReconstructionConceptualMLModel(MachineLearningModel):
def __init__(self, model):
self.__model = model
self.accuracy = None
self.subject = model.__class__.__name__
def train(self, data, *args, **kwargs):
# TODO (dmt): Improve signature of this function!
......@@ -117,6 +119,7 @@ class ReconstructionProceduralMLModel(MachineLearningModel):
self.__model = model
self.mean_error = None
self.max_error = None
self.subject = model.__class__.__name__
def train(self, data, *args, **kwargs):
# TODO (dmt): Provide a better way dealing with
......
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