Docs

0%

Loading...

Static preview:

Metric

Metric computes distance metrics for comparing tensors. The different metrics supported are: stats/metric.Metrics.

As with statistics, n-dimensional data is treated in a row-based manner, computing a metric value over the data across rows:

To get a single value for each row representing the metric computed on the elements within that row, you need to iterate and slice: