RootMeanSquaredError#
- class bayesflow.metrics.RootMeanSquaredError(name='root_mean_squared_error', dtype=None, **kwargs)[source]#
Bases:
MeanMetricWrapper
- __call__(*args, **kwargs)#
Call self as a function.
- add_variable(shape, initializer, dtype=None, aggregation='sum', name=None)#
- add_weight(shape=(), initializer=None, dtype=None, name=None)#
- property dtype#
- classmethod from_config(config)#
- get_config()#
Return the serializable config of the metric.
- reset_state()#
Reset all of the metric state variables.
This function is called between epochs/steps, when a metric is evaluated during training.
- result()#
Compute the current metric value.
- Returns:
A scalar tensor, or a dictionary of scalar tensors.
- stateless_reset_state()#
- stateless_result(metric_variables)#
- stateless_update_state(metric_variables, *args, **kwargs)#
- update_state(y_true, y_pred, sample_weight=None)#
Accumulate statistics for the metric.
- property variables#