def _get_validation_loss_(self):
    self.model.eval()
    (data, target) = self.validation_loader_it.next()
    (data, target) = (data.to(self.device), target.to(self.device))
    output = self.model(data)
    validation_loss = self.loss_function(output, target).mean()
    validation_loss = torch.unsqueeze(validation_loss.detach(), dim=0)
    self.current_validation_loss = validation_loss
    self.model.train()
    return (- validation_loss.item())
def _get_validation_loss_(self):
    self.model.eval()
    (data, target) = self.validation_loader_it.next()
    (data, target) = (data.to(self.device), target.to(self.device))
    output = self.model(data)
    validation_loss = self.loss_function(output, target).mean()
    validation_loss = torch.unsqueeze(validation_loss.detach(), dim=0)
    self.current_validation_loss = validation_loss
    self.model.train()
    return (- validation_loss.item())