Skip to main content

encode

Function encode 

Source
pub fn encode(features: &Features, rung: u32) -> [f64; 21]
Expand description

Encode (features, rung) into the fixed-length feature vector (see FEATURE_DIM).

Deterministic and privacy-preserving — it reads only the already-coarsened Features (buckets and flags, never raw prompt text).