~/bend-docscommunity

src/metrics.bend checks

raw source on the hub · import 0x7e29b7224f420229b0320d908dff8769/src/metrics.bend as Metrics

3 imports
import Base
import ./batch.bend as Batch
import ./numeric.bend as Numeric

Types

type Prediction source · line 5 · raw

Data

type SquaredErrors source · line 8 · raw

Data

Definitions

def singleton source · line 11 · raw

@row:Prediction -> SquaredErrors

def merge source · line 16 · raw

@a:SquaredErrors -> @b:SquaredErrors -> SquaredErrors

def checked source · line 21 · raw

@ok:Bool -> @value:F32 -> Maybe<&2, F32>

def finish source · line 28 · raw

@stats:SquaredErrors -> Maybe<&2, F32>

def mean_squared_error source · line 39 · raw

@rows:0x7e29b7224f420229b0320d908dff8769/src/batch.Batch<Prediction> -> Maybe<&2, F32>

None means no observations or a non-finite numerical result.