gleam_synapses/model/encoding/preprocessor

Types

pub type Preprocessor =
  ZList(Attribute)

Functions

pub fn decode(preprocessor: ZList(Attribute), encoded_datapoint: ZList(
    Float,
  )) -> Map(String, String)
pub fn encode(preprocessor: ZList(Attribute), datapoint: Map(
    String,
    String,
  )) -> ZList(Float)
pub fn init(keys_with_flags: ZList(#(String, Bool)), dataset: Iterator(
    Map(String, String),
  )) -> ZList(Attribute)
pub fn of_json(s: String) -> ZList(Attribute)
pub fn realized(preprocessor: ZList(Attribute)) -> ZList(
  Attribute,
)
pub fn to_json(preprocessor: ZList(Attribute)) -> String