nlpmodels/utils/train.py
def _calc_loss_function(self, y_hat: Any, data: Any):
        """
        A wrapper function for calling the loss calculation.
        """
        return y_hat

        A wrapper function for calling the loss calculation.
        
A wrapper function for calling the loss calculation.
A wrapper function for calling the loss calculation .
def _calc_loss_function(self, y_hat: Any, data: Any):
        return y_hat
def _calc_loss_function ( self , y_hat : Any , data : Any ) : return y_hat
A wrapper function for calling the loss calculation.
A wrapper function for calling the loss calculation .
"""
        A wrapper function for calling the loss calculation.
        """
self
y_hat
Any
data
Any