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/One_hot_encoder/index.html
Module Modelkit.One_hot_encoder
Encoding of finite float64 categories as dense or CSR indicator columns.
Categories are learned independently per feature and sorted ascending. Output columns follow input-feature order, then category order. Reject reports a category absent during fitting; Ignore emits an all-zero group for that feature. max_output_features bounds the fitted output width, and sample weights are rejected.
val create :
?unknown_category:unknown_category ->
?max_output_features:int ->
unit ->
(t, Error.t) resultval transform_csr :
fitted ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
(Csr_matrix.t, Error.t) resultApplies the fitted encoder directly into canonical checked CSR storage without allocating the equivalent dense indicator matrix.
include TRANSFORMER
with type t := t
and type params := params
and type target = unit
and type fitted := fitted
and type rng = Rng.t
type rng = Rng.tval fit :
t ->
?sample_weight:Sample_weight.t ->
rng:rng ->
feature_schema:Feature_schema.t ->
x:Matrix.t ->
y:target option ->
unit ->
(fitted, Error.t) resultval input_schema : fitted -> Feature_schema.tval output_schema : fitted -> Feature_schema.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>