Skip to content

cuboid_patch_aggregation_based_geometric_interdependence

Bases: cuboid_patch_based_geometric_interdependence

A geometric interdependence class using cuboid patches with aggregation mode.

This class applies geometric interdependence in aggregation mode, ensuring patches are aggregated into the grid structure.

Attributes:

Name Type Description
interdependence_matrix_mode str

The interdependence matrix mode set to 'aggregation'.

Methods:

Name Description
__init__

Initializes the cuboid patch-based geometric interdependence function in aggregation mode.

Source code in tinybig/interdependence/geometric_interdependence.py
class cuboid_patch_aggregation_based_geometric_interdependence(cuboid_patch_based_geometric_interdependence):
    """
        A geometric interdependence class using cuboid patches with aggregation mode.

        This class applies geometric interdependence in aggregation mode, ensuring patches are
        aggregated into the grid structure.

        Attributes
        ----------
        interdependence_matrix_mode : str
            The interdependence matrix mode set to 'aggregation'.

        Methods
        -------
        __init__(interdependence_matrix_mode='aggregation', ...)
            Initializes the cuboid patch-based geometric interdependence function in aggregation mode.
    """
    def __init__(self, interdependence_matrix_mode: str = 'aggregation', *args, **kwargs):
        """
            Initializes the cuboid patch-based geometric interdependence function in aggregation mode.

            Parameters
            ----------
            interdependence_matrix_mode : str, optional
                Mode for the interdependence matrix. Defaults to 'aggregation'.
            *args : tuple
                Additional positional arguments for the parent class.
            **kwargs : dict
                Additional keyword arguments for the parent class.
        """
        super().__init__(interdependence_matrix_mode='aggregation', *args, **kwargs)

__init__(interdependence_matrix_mode='aggregation', *args, **kwargs)

Initializes the cuboid patch-based geometric interdependence function in aggregation mode.

Parameters:

Name Type Description Default
interdependence_matrix_mode str

Mode for the interdependence matrix. Defaults to 'aggregation'.

'aggregation'
*args tuple

Additional positional arguments for the parent class.

()
**kwargs dict

Additional keyword arguments for the parent class.

{}
Source code in tinybig/interdependence/geometric_interdependence.py
def __init__(self, interdependence_matrix_mode: str = 'aggregation', *args, **kwargs):
    """
        Initializes the cuboid patch-based geometric interdependence function in aggregation mode.

        Parameters
        ----------
        interdependence_matrix_mode : str, optional
            Mode for the interdependence matrix. Defaults to 'aggregation'.
        *args : tuple
            Additional positional arguments for the parent class.
        **kwargs : dict
            Additional keyword arguments for the parent class.
    """
    super().__init__(interdependence_matrix_mode='aggregation', *args, **kwargs)