soft.fuzzy.unsupervised.granulation package

Subpackages

Module contents

Contains the unsupervised learning algorithms for granulation.

soft.fuzzy.unsupervised.granulation.partitioning(dataset: SupervisedDataset, config: Config, algorithm: callable) LinguisticVariables

A generic unsupervised learning partitioning interface that will apply the selected algorithm to produce linguistic variables from the dataset in accordance to the configuration.

Parameters:
  • dataset – The dataset.

  • config – The configuration settings.

  • algorithm – The partitioning algorithm to use.

Returns:

Linguistic variables.

soft.fuzzy.unsupervised.granulation.partitioning_helper(tensor: Tensor, config: Config, algorithm: callable, terms: List[Type[ContinuousFuzzySet]] | None = None) List[Type[ContinuousFuzzySet]]

Apply the selected partitioning algorithm to produce linguistic terms along the given space.

Parameters:
  • tensor – The selected tensor from the dataset.

  • config – The configuration settings.

  • algorithm – The partitioning algorithm to use.

  • terms – A list of terms to start from, if any.

Returns:

A list of fuzzy sets that inherit from ContinuousFuzzySet along the tensor space.