Skip to content

iris

Bases: tabular_dataloader

A dataloader class for the Iris dataset.

This class extends the tabular_dataloader class to load and process the Iris dataset. The Iris dataset contains measurements of four features (sepal length, sepal width, petal length, petal width) for three species of iris flowers.

Attributes:

Name Type Description
name str, default = 'iris_dataset'

The name of the dataset.

data_contents (list or tuple, optional)

The contents of the Iris dataset, typically provided as a list of data entries.

Methods:

Name Description
__init__

Initializes the Iris dataset dataloader.

Source code in tinybig/data/tabular_dataloader.py
class iris(tabular_dataloader):
    """
    A dataloader class for the Iris dataset.

    This class extends the `tabular_dataloader` class to load and process the Iris dataset.
    The Iris dataset contains measurements of four features (sepal length, sepal width, petal length, petal width)
    for three species of iris flowers.

    Attributes
    ----------
    name : str, default = 'iris_dataset'
        The name of the dataset.
    data_contents : list or tuple, optional
        The contents of the Iris dataset, typically provided as a list of data entries.

    Methods
    ----------
    __init__(name, data_contents, ...)
        Initializes the Iris dataset dataloader.
    """
    def __init__(self, name='iris_dataset', data_contents=Iris_Dataset, *args, **kwargs):
        """
        Initializes the Iris dataset dataloader.

        Parameters
        ----------
        name : str, default = 'iris_dataset'
            The name of the dataset.
        data_contents : list or tuple, optional
            The contents of the Iris dataset.

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

__init__(name='iris_dataset', data_contents=Iris_Dataset, *args, **kwargs)

Initializes the Iris dataset dataloader.

Parameters:

Name Type Description Default
name str

The name of the dataset.

= 'iris_dataset'
data_contents list or tuple

The contents of the Iris dataset.

Iris_Dataset

Returns:

Type Description
None
Source code in tinybig/data/tabular_dataloader.py
def __init__(self, name='iris_dataset', data_contents=Iris_Dataset, *args, **kwargs):
    """
    Initializes the Iris dataset dataloader.

    Parameters
    ----------
    name : str, default = 'iris_dataset'
        The name of the dataset.
    data_contents : list or tuple, optional
        The contents of the Iris dataset.

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