def test(self, dataset: BaseADDataset, device: str = 'cuda', n_jobs_dataloader: int = 0):
        """Tests the Deep SAD model on the test data."""

        if self.trainer is None:
            self.trainer = DeepSADTrainer(self.c, self.eta, device=device, n_jobs_dataloader=n_jobs_dataloader)

        score = self.trainer.test(dataset, self.net)

        # Get results
        # self.results['test_aucroc'] = self.trainer.test_aucroc
        # self.results['test_aucpr'] = self.trainer.test_aucpr
        self.results['test_time'] = self.trainer.test_time
        self.results['test_scores'] = self.trainer.test_scores

        return score
Tests the Deep SAD model on the test data.
adbench/baseline/DeepSAD/src/deepsad.py