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
Prediction@actual:F32 -> @predicted:F32 -> Prediction
type SquaredErrors source · line 8 · raw
Data
SquaredErrors@n:Nat -> @total:F32 -> SquaredErrors
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.