Skip to content

incremental_feature_clustering_based_compression

Bases: feature_selection_compression

The incremental feature clustering based compression function.

This class uses an incremental feature clustering method to reduce the dimensionality of input features for data compression. It calls the incremental_feature_clustering method from tinybig.compression.incremental_feature_clustering module.

Parameters:

Name Type Description Default
D int

Number of features to retain after compression.

required
name str

Name of the transformation. Defaults to 'incremental_feature_clustering_based_compression'.

'incremental_feature_clustering_based_compression'

Methods:

Name Description
__init__

Initializes the class with the incremental feature clustering method.

Source code in tinybig/compression/feature_selection_compression.py
class incremental_feature_clustering_based_compression(feature_selection_compression):
    """
        The incremental feature clustering based compression function.

        This class uses an incremental feature clustering method to reduce the dimensionality of input features for data compression.
        It calls the incremental_feature_clustering method from tinybig.compression.incremental_feature_clustering module.

        Parameters
        ----------
        D : int
            Number of features to retain after compression.
        name : str, optional
            Name of the transformation. Defaults to 'incremental_feature_clustering_based_compression'.

        Methods
        -------
        __init__(D, name='incremental_feature_clustering_based_compression', *args, **kwargs)
            Initializes the class with the incremental feature clustering method.
    """

    def __init__(self, D: int, name='incremental_feature_clustering_based_compression', *args, **kwargs):
        """
            The initialization method incremental feature clustering based compression function.

            It initializes the class with the incremental feature clustering method.

            Parameters
            ----------
            D : int
                Number of features to retain after compression.
            name : str, optional
                Name of the transformation. Defaults to 'incremental_feature_clustering_based_compression'.
            """
        fs_function = incremental_feature_clustering(n_feature=D)
        super().__init__(D=D, name=name, fs_function=fs_function, *args, **kwargs)

__init__(D, name='incremental_feature_clustering_based_compression', *args, **kwargs)

The initialization method incremental feature clustering based compression function.

It initializes the class with the incremental feature clustering method.

Parameters:

Name Type Description Default
D int

Number of features to retain after compression.

required
name str

Name of the transformation. Defaults to 'incremental_feature_clustering_based_compression'.

'incremental_feature_clustering_based_compression'
Source code in tinybig/compression/feature_selection_compression.py
def __init__(self, D: int, name='incremental_feature_clustering_based_compression', *args, **kwargs):
    """
        The initialization method incremental feature clustering based compression function.

        It initializes the class with the incremental feature clustering method.

        Parameters
        ----------
        D : int
            Number of features to retain after compression.
        name : str, optional
            Name of the transformation. Defaults to 'incremental_feature_clustering_based_compression'.
        """
    fs_function = incremental_feature_clustering(n_feature=D)
    super().__init__(D=D, name=name, fs_function=fs_function, *args, **kwargs)