def to_array_targets(self) -> Array:
        """
        Reduce a data loader to an array of target data.

        Returns
        -------
        Array
            Array of input data.
        """
        targets = []
        for batch_inputs, batch_targets in self:
            targets.append(batch_targets)
        return np.concatenate(targets, 0)

        Reduce a data loader to an array of target data.

        Returns
        -------
        Array
            Array of input data.
        
fortuna/data/loader/array_loaders.py