Skip to content

elementary_function

Bases: function_dataloader

A dataloader class for elementary functions.

This class extends the function_dataloader to handle elementary mathematical functions.

Attributes:

Name Type Description
name str, default = 'elementary_function'

The name of the dataloader instance.

function_list list, default = Elementary_Function_Equations

The list of elementary function equations.

Methods:

Name Description
__init__

Initializes the dataloader for elementary functions.

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

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

    Attributes
    ----------
    name: str, default = 'elementary_function'
        The name of the dataloader instance.
    function_list: list, default = Elementary_Function_Equations
        The list of elementary function equations.

    Methods
    -------
    __init__(name='elementary_function', ...)
        Initializes the dataloader for elementary functions.
    """
    def __init__(self, name='elementary_function', function_list: list = Elementary_Function_Equations, *args, **kwargs):
        """
        A dataloader class for elementary functions.

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

        Attributes
        ----------
        name: str, default = 'elementary_function'
            The name of the dataloader instance.
        function_list: list, default = Elementary_Function_Equations
            The list of elementary function equations.

        Methods
        -------
        __init__(name='elementary_function', ...)
            Initializes the dataloader for elementary functions.
        """
        super().__init__(name=name, function_list=function_list, *args, **kwargs)

__init__(name='elementary_function', function_list=Elementary_Function_Equations, *args, **kwargs)

A dataloader class for elementary functions.

This class extends the function_dataloader to handle elementary mathematical functions.

Attributes:

Name Type Description
name str, default = 'elementary_function'

The name of the dataloader instance.

function_list list, default = Elementary_Function_Equations

The list of elementary function equations.

Functions:

Name Description
__init__

Initializes the dataloader for elementary functions.

Source code in tinybig/data/function_dataloader.py
def __init__(self, name='elementary_function', function_list: list = Elementary_Function_Equations, *args, **kwargs):
    """
    A dataloader class for elementary functions.

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

    Attributes
    ----------
    name: str, default = 'elementary_function'
        The name of the dataloader instance.
    function_list: list, default = Elementary_Function_Equations
        The list of elementary function equations.

    Methods
    -------
    __init__(name='elementary_function', ...)
        Initializes the dataloader for elementary functions.
    """
    super().__init__(name=name, function_list=function_list, *args, **kwargs)