def size(self) -> int:
        """
        The number of data points in the targets loader.

        Returns
        -------
        int
            Number of data points.
        """
        c = 0
        for targets in self:
            c += targets.shape[0]
        return c

        The number of data points in the targets loader.

        Returns
        -------
        int
            Number of data points.
        
fortuna/data/loader/base.py