nlpmodels/utils/train.py
def loss_cache(self) -> List:
        """
        Returns a list of cached losses for debugging.

        Returns:
            list of losses cached at the end of every epoch.
        """

        return self._loss_cache

        Returns a list of cached losses for debugging.

        Returns:
            list of losses cached at the end of every epoch.
        
Returns a list of cached losses for debugging.
Returns a list of cached losses for debugging .
def loss_cache(self) -> List:
        return self._loss_cache
def loss_cache ( self ) -> List : return self . _loss_cache
Returns a list of cached losses for debugging.
Returns a list of cached losses for debugging .
"""
        Returns a list of cached losses for debugging.

        Returns:
            list of losses cached at the end of every epoch.
        """
list of losses cached at the end of every epoch.
list of losses cached at the end of every epoch .
self