package modelkit

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

Module Modelkit.Admission

Adapter-neutral admission results.

Every ModelKit adapter returns these records so that conformance tests, allocation benchmarks, and application code can treat admitted data uniformly regardless of the source library. Each conversion pairs an immutable ModelKit value with the Conversion_report.t describing the payload allocated to produce it. features carries the admitted matrix, its schema, an explicit null mask when the source supplied one, and the reports for the matrix and mask. dataset carries a complete Dataset.t together with the feature null mask and every report produced while admitting features, target, weights, and groups.

type 'a conversion = {
  1. value : 'a;
  2. report : Conversion_report.t;
}
type features = {
  1. matrix : Matrix.t;
  2. schema : Feature_schema.t;
  3. null_mask : Null_mask.t option;
  4. feature_reports : Conversion_report.t list;
}
type 'kind dataset = {
  1. dataset : 'kind Dataset.t;
  2. feature_null_mask : Null_mask.t option;
  3. dataset_reports : Conversion_report.t list;
}
val retained_payload_bytes : Conversion_report.t list -> int64

Total retained payload across a list of reports.

val temporary_payload_bytes : Conversion_report.t list -> int64

Total discarded staging payload across a list of reports.

val allocated_payload_bytes : Conversion_report.t list -> int64

Total allocated payload (retained plus temporary) across a list of reports.