package modelkit

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Modelkit.Null_mask

Immutable rank-two missing-value identity aligned to a feature matrix.

true identifies a source null. The mask is kept separately from feature values so adapters can preserve the distinction between an explicit null and a genuine IEEE NaN.

type t
val init : rows:int -> columns:int -> (int -> int -> bool) -> (t, Data_error.t) result
val of_arrays : bool array array -> (t, Data_error.t) result
val rows : t -> int
val columns : t -> int
val shape : t -> int * int
val get : t -> int -> int -> bool
val null_count : t -> int
val to_arrays : t -> bool array array