协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
model-export【开发与工程】Export a fitted Python ML model to native code with m2cgen via API or CLI.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a user already has a fitted Python model and wants m2cgen-generated native code.
references/api-reference.md.references/cli-reference.md.references/model-overview.md.references/workflows.md.references/troubleshooting.md.m2cgen.export_to_* functions.python -m m2cgen or the installed m2cgen console script.Run python scripts/smoke_export.py for a narrow, deterministic check of public export calls using a model the script creates locally. It executes only the generated Python export; it does not compile or run the other target-language outputs and is not a replacement for end-to-end fixture coverage.
Add --cli to exercise the python -m m2cgen file and stdin paths. --joblib and --console-script are optional paths that require --cli; passing either without --cli is rejected rather than silently reporting a partial check. Neither optional path is exercised by the default command. Read references/workflows.md before running it where executing generated Python, invoking a PATH-resolved console script, or the temporary-file lifecycle matters.