(self, X: torch.Tensor, model: GaussianModel, n_epochs: int = 20)
| 102 | model.update_from_estimate(m_estimates, self.alpha) |
| 103 | |
| 104 | def loop(self, X: torch.Tensor, model: GaussianModel, n_epochs: int = 20): |
| 105 | for epoch in range(1, n_epochs + 1): |
| 106 | self.perform_epoch(model=model, X=X) |
| 107 | # get final accuracy and return it |
| 108 | P = model.get_probas(X=X, labels=self.s_labels) |
| 109 | return P |
| 110 | |
| 111 | |
| 112 | class PTMAPLoss(nn.Module): |
no test coverage detected