Skip to content

Machine learning kit

Cargo featurefeatures = ["ml"]

The machine learning kit is the ml feature of fframes-kit (fframes-kit = { .., features = ["ml"] }) and needs no other crate. It builds for wasm32, so every figure here also runs in the editor. It draws ManimML’s figures; it runs no model. Weights, activations and samples are data you pass. Every entry names its scene in the components gallery (cargo run --release -p components-gallery -- strip <Scene> -n 8).

  • Placement. A figure is placed in units of ui.space (Manim’s frame: 8 units tall, y up, the origin in the middle). Its sizes are in pixels.
  • Time. Animations are props with a start and a duration in seconds, sampled at the frame’s time, so any frame can be rendered on its own.