synapse-0.1.0.0: Synapse is a machine learning library written in pure Haskell.
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

Synopsis

Documentation

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).

newtype Metric a Source #

Metric newtype wraps MetricFns - functions that are able to provide a reference of performance of neural network model.

Every metric function must return symbol of singleton matrix.

Constructors

Metric 

Fields