package modelkit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Portable classical machine learning workflows for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
modelkit-0.5.0.tbz
sha256=1fe8fa7c7f904dd098a21a2ca30fd69230750b8cf8aa2ae481b97a16531b47b4
sha512=c946cd1ac014726f4d21791e14d806a205680e6edfa2f80ed8d3680f24f48ca3c5a2f89d5afa68c11eac4053ead448b6381fb3d06dc8ff129097af6c69b262fb
doc/modelkit/Modelkit/Dataset/index.html
Module Modelkit.Dataset
An admitted immutable dense dataset and its zero-copy row selections.
Admission validates alignment and the declared feature finiteness policy. create reuses already-immutable ModelKit values. view stores only row indices; materialize packs a view into new row-aligned buffers.
type access_report = {feature_access : data_access;target_access : data_access;sample_weight_access : data_access option;group_access : data_access option;
}val create :
finiteness:finiteness ->
?feature_names:Feature_names.t ->
?sample_weight:Sample_weight.t ->
?groups:Groups.t ->
x:Matrix.t ->
y:'kind Target.t ->
unit ->
('kind t, Data_error.t) resultval sample_count : _ t -> intval feature_count : _ t -> intval sample_weight : _ t -> Sample_weight.t optionval feature_schema : _ t -> Feature_schema.tval schema_fingerprint : _ t -> Schema_fingerprint.tval finiteness : _ t -> finitenessval access_report : _ t -> access_reportval view : 'kind t -> Row_view.t -> ('kind view, Data_error.t) resultval view_sample_count : _ view -> intval row_view : _ view -> Row_view.tval view_access_report : _ view -> access_reportval source_row : _ view -> int -> intRaises Invalid_argument if the view position is out of bounds.
val feature : _ view -> row:int -> column:int -> floatfeature view ~row ~column addresses logical rows in the view. Raises Invalid_argument if either index is out of bounds.
val regression_target : Target.regression view -> int -> floatval classification_target : Target.classification view -> int -> intval sample_weight_value : _ view -> int -> float optionval group : _ view -> int -> int optionval materialize : 'kind view -> ('kind t, Data_error.t) resultmaterialize view copies selected row-aligned buffers. Feature names and the immutable schema are reused.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>