(self)
| 112 | } |
| 113 | |
| 114 | def classification_multi(self): |
| 115 | from sklearn.metrics import accuracy_score |
| 116 | |
| 117 | true, pred_score = torch.cat(self._true), torch.cat(self._pred) |
| 118 | pred_int = self._get_pred_int(pred_score) |
| 119 | return {'accuracy': round(accuracy_score(true, pred_int), cfg.round)} |
| 120 | |
| 121 | def regression(self): |
| 122 | from sklearn.metrics import mean_absolute_error, mean_squared_error |
no test coverage detected