Skip to content

composite_function

Bases: function_dataloader

A dataloader class for composite functions.

This class extends the function_dataloader to handle composite mathematical functions.

Attributes:

Name Type Description
name str, default = 'composite_function'

The name of the dataloader instance.

function_list list, default = Composite_Function_Equations

The list of composite function equations.

Methods:

Name Description
__init__

Initializes the dataloader for composite functions.

Source code in tinybig/data/function_dataloader.py
class composite_function(function_dataloader):
    """
    A dataloader class for composite functions.

    This class extends the `function_dataloader` to handle composite mathematical functions.

    Attributes
    ----------
    name: str, default = 'composite_function'
        The name of the dataloader instance.
    function_list: list, default = Composite_Function_Equations
        The list of composite function equations.

    Methods
    -------
    __init__(name='composite_function', ...)
        Initializes the dataloader for composite functions.
    """
    def __init__(self, name='composite_function', function_list: list = Composite_Function_Equations, *args, **kwargs):
        """
        Initializes the dataloader for composite functions.

        Parameters
        ----------
        name: str, default = 'composite_function'
            The name of the dataloader instance.
        function_list: list, default = Composite_Function_Equations
            The list of composite function equations.

        Returns
        -------
        None
        """
        super().__init__(name=name, function_list=function_list, *args, **kwargs)

__init__(name='composite_function', function_list=Composite_Function_Equations, *args, **kwargs)

Initializes the dataloader for composite functions.

Parameters:

Name Type Description Default
name

The name of the dataloader instance.

'composite_function'
function_list list

The list of composite function equations.

Composite_Function_Equations

Returns:

Type Description
None
Source code in tinybig/data/function_dataloader.py
def __init__(self, name='composite_function', function_list: list = Composite_Function_Equations, *args, **kwargs):
    """
    Initializes the dataloader for composite functions.

    Parameters
    ----------
    name: str, default = 'composite_function'
        The name of the dataloader instance.
    function_list: list, default = Composite_Function_Equations
        The list of composite function equations.

    Returns
    -------
    None
    """
    super().__init__(name=name, function_list=function_list, *args, **kwargs)