Reset the metric to its initial state.
(self)
| 181 | return (1.0 - (pred_ce / baseline_ce)) * 100 |
| 182 | |
| 183 | def reset(self): |
| 184 | """ |
| 185 | Reset the metric to its initial state. |
| 186 | """ |
| 187 | super().reset() |
| 188 | self.mean_label.reset() |
| 189 | self.binary_cross_entropy.reset() |
| 190 | |
| 191 | def forward(self, *args, **kwargs): |
| 192 | """ |
no outgoing calls