Synapse.NN.Metrics
Description
Provides collection of functions that are used to judge the performance of models.
MetricFn type alias represents those functions, and Synapse offers a variety of them.
MetricFn
type MetricFn a = Mat a -> Mat a -> Mat a Source #
MetricFn type alias represents functions that are able to provide a reference of performance of neural network model.
lossFnToMetricFn :: LossFn a -> MetricFn a Source #
Converts any loss function to a metric function (because the same constraint is imposed on both MetricFn and LossFn).
LossFn
newtype Metric a Source #
Metric newtype wraps MetricFns - functions that are able to provide a reference of performance of neural network model.
Metric
Every metric function must return symbol of singleton matrix.
Constructors
Fields
Unwraps Metric newtype.