Source code for pyFTS.models.multivariate.FLR



[docs]class FLR(object): """Multivariate Fuzzy Logical Relationship""" def __init__(self): """ Creates a Fuzzy Logical Relationship :param LHS: Left Hand Side fuzzy set :param RHS: Right Hand Side fuzzy set """ self.LHS = {} self.RHS = None
[docs] def set_lhs(self, var, set): self.LHS[var] = set
[docs] def set_rhs(self, set): self.RHS = set
def __str__(self): return "{} -> {}".format([k for k in self.LHS.values()], self.RHS)