def train(self, data, **kwargs): parameters = kwargs.get('parameters', 'fuzzy') if parameters == 'monotonic': tmpdata = FuzzySet.fuzzyfy_series_old(data, self.sets) flrs = FLR.generate_recurrent_flrs(tmpdata) self.generateFLRG(flrs) else: self.generate_flrg(data)
def train(self, data, **kwargs): if kwargs.get('sets', None) is not None: self.sets = kwargs.get('sets', None) tmpdata = FuzzySet.fuzzyfy_series_old(data, self.sets) flrs = FLR.generate_non_recurrent_flrs(tmpdata) self.generate_flrg(flrs)