fuzzyclust.timeseries.MixedInputStructureSelection#

class fuzzyclust.timeseries.MixedInputStructureSelection(n_clusters=3, max_inputs=None, m=2.0, vct_tolerance=0.2, random_state=None)[source]#

Bases: BaseEstimator

Estimator form of select_structure_mixed().

Parameters:
n_clustersint, “xie-beni” or sequence, default=3
max_inputsint, optional
mfloat, default=2.0
vct_tolerancefloat, default=0.2
random_stateint, RandomState instance or None
Attributes:
ranking_pandas.DataFrame

All evaluated structures sorted by \(\sigma_t\) (see select_structure_mixed()).

memberships_list of ndarrays

Fuzzy (or crisp) partition of every input, shape (n_samples, c_j).

centers_list of ndarrays

Cluster centers (continuous inputs) or the distinct values (discrete inputs).

best_structure_tuple of str

Recommended structure: among the structures whose \(\sigma_t\) lies within vct_tolerance of the smallest one (structures of “similar variance”, the only ones the paper compares by VCT), the one with the smallest \(VCT\). This is the first dip of the VCT curve in the paper’s figures.

feature_names_list of str
discrete_ndarray of bool
n_features_in_int

See also

select_structure_mixed

functional interface with the full description.

fit(X, y, discrete=None, feature_names=None)[source]#

Partition every input and rank all structures of at most max_inputs inputs.

Parameters:
Xarray_like of shape (n_samples, n_inputs)
yarray_like of shape (n_samples,)
discretearray_like of bool or int, optional

Mask or indices of the discrete inputs.

feature_namessequence of str, optional

Defaults to the DataFrame columns or x1, x2, ....

transform_segments(inputs)[source]#

Product-space segment memberships (n_samples, n_segments) of a structure (input names).

Examples using fuzzyclust.timeseries.MixedInputStructureSelection#

Model-free structure selection with mixed discrete and continuous inputs

Model-free structure selection with mixed discrete and continuous inputs