def fit(self, X=None, y=None):
    "'Fit' the model (freeze the attributes and compile if available)"
    self.fis_ = _set_vars(self.fis, {parameter: getattr(self, parameter) for (parameter, _) in _get_vars(self.fis)})
    self.fis_.defuzzification = self.defuzzification
    try:
        self.fis_ = self.fis_.compile()
    except Exception:
        pass
    return self
'Fit' the model (freeze the attributes and compile if available)
def fit(self, X=None, y=None):
    
    self.fis_ = _set_vars(self.fis, {parameter: getattr(self, parameter) for (parameter, _) in _get_vars(self.fis)})
    self.fis_.defuzzification = self.defuzzification
    try:
        self.fis_ = self.fis_.compile()
    except Exception:
        pass
    return self