Shortname property on Retrainer
This commit is contained in:
parent
b677a0e627
commit
307836f261
@ -36,6 +36,13 @@ class Retrainer(fts.FTS):
|
||||
"""The batch interval between each retraining"""
|
||||
self.is_high_order = True
|
||||
self.uod_clip = False
|
||||
|
||||
@property
|
||||
def shortname(self):
|
||||
if self.model is None:
|
||||
self.model = self.fts_method()
|
||||
|
||||
return self.model.shortname
|
||||
|
||||
def train(self, data, **kwargs):
|
||||
self.partitioner = self.partitioner_method(data=data, **self.partitioner_params)
|
||||
@ -75,4 +82,4 @@ class Retrainer(fts.FTS):
|
||||
|
||||
:return: number of rules
|
||||
"""
|
||||
return len(self.model)
|
||||
return len(self.model)
|
||||
|
Loading…
Reference in New Issue
Block a user