Takagi-Sugeno Model Builder

class pyfume.BuildTakagiSugeno.BuildTSFIS(datapath=None, dataframe=None, nr_clus=None, variable_names=None, process_categorical=False, merge_threshold=1.0, **kwargs)

Bases: object

Learns a a new Takagi-Sugeno fuzzy model.

Parameters
  • datapath – The path to the csv file containing the input data (argument ‘datapath’ or ‘dataframe’ should be specified by the user).

  • dataframe – Pandas dataframe containing the input data (argument ‘datapath’ or ‘dataframe’ should be specified by the user).

  • nr_clus – Number of clusters that should be identified in the data (default = 2).

  • process_categorical – Boolean to indicate whether categorical variables should be processed (default = False).

  • method – At this moment, only Takagi Sugeno models are supported (default = ‘Takagi-Sugeno’)

  • variable_names – Names of the variables, if not specified the names will be read from the first row of the csv file (default = None).

  • merge_threshold – Threshold for GRABS to drop fuzzy sets from the model. If the jaccard similarity between two sets is higher than this threshold, the fuzzy set will be dropped from the model.

  • **kwargs – Additional arguments to change settings of the fuzzy model.

Returns

An object containing the fuzzy model, information about its setting (such as its antecedent and consequent parameters) and the different splits of the data.