declearn.metrics.MeanSquaredError
Bases: MeanMetric
Mean Squared Error (MSE) metric.
This metric applies to a regression model, and computes the (opt. weighted) mean sample-wise squared error. Note that for inputs with multiple channels, the sum of squared channel-wise errors is computed for each sample, and averaged across samples.
Computed metric is the following:
- mse: float Mean squared error, averaged across samples (possibly summed over channels for (>=2)-dimensional inputs).
Source code in declearn/metrics/_mean.py
151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
|