算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
manim-ml【设计与创意】Use ManimML to build Manim Community animations and visual explanations for machine-learning concepts, especially neural-network diagrams, decision trees, MCMC, probability, and plotting workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when the task asks for Python code, Manim scenes, debugging help, or workflow guidance involving ManimML / manim_ml:
Do not use this skill for unrelated Manim projects that do not use ManimML APIs, for training real ML models, or for maintaining this source repository unless the user specifically asks for repo development rather than package use.
ManimML is a Manim Community extension. A usable environment should have:
pip install manim_ml
python - <<'PY'
import manim
import manim_ml
from manim_ml.neural_network import NeuralNetwork, FeedForwardLayer
print(getattr(manim, "__version__", "unknown"))
print(NeuralNetwork, FeedForwardLayer)
PY
For decision-tree and MCMC workflows, the active environment also needs common scientific packages such as NumPy, Pillow, SciPy, matplotlib/seaborn, scikit-learn, and tqdm. Full rendering may require the usual Manim Community render stack (for example Cairo/Pango/ffmpeg and, for some text workflows, LaTeX).
Run the bundled shared smoke helper before deeper debugging:
python scripts/check_manimml_environment.py --json
| User task | Read next |
|---|---|
| Build a feed-forward, CNN, image-CNN, embedding, triplet, paired-query, vector/math, dropout, residual, VAE-style, or forward-pass ManimML scene | neural-network-visualization |
| Generate a small standalone Manim scene without repo assets | neural-network helper script through the neural-network sub-skill |
| Build or debug scikit-learn decision-tree, decision-surface, MCMC, Gaussian/probability, or matplotlib-to-image workflows | statistical-visualizations |
| Verify package imports, Manim Community compatibility, or cross-cutting render issues | root troubleshooting and check script |
| Decide whether this generated skill is stale for a checkout | repo provenance |
manim -ql -s for a still frame before long video renders.Generate an asset-free neural-network scene file:
python sub-skills/neural-network-visualization/scripts/render_neural_network_example.py \
--mode image-cnn \
--scene-file image_cnn_scene.py
Run compact statistical construction checks without rendering:
python sub-skills/statistical-visualizations/scripts/build_statistical_visualizations.py \
--example all \
--iterations 8 \
--json
Then render only after the generated code or construction check succeeds.