gleam_synapses/model/encoding/preprocessor

Types

pub type Preprocessor =
  ZList(Attribute)

Functions

pub fn decode(
  preprocessor: ZList(Attribute),
  encoded_datapoint: ZList(Float),
) -> Dict(String, String)
pub fn encode(
  preprocessor: ZList(Attribute),
  datapoint: Dict(String, String),
) -> ZList(Float)
pub fn init(
  keys_with_flags: ZList(#(String, Bool)),
  dataset: Iterator(Dict(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
Search Document