一键导入
cli-python-sweep
Perform a parameter sweep over a Python function using the ensemblesweep CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Perform a parameter sweep over a Python function using the ensemblesweep CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cli_python_sweep |
| description | Perform a parameter sweep over a Python function using the ensemblesweep CLI. |
Use this skill to evaluate a Python function across a grid of parameters using ensemblesweep py. This is the fastest way to generate parallel data for any Python function without writing extra scripts.
PYTHONPATH).Always perform a dry run first, especially for grids with more than 2 dimensions, to verify the total number of evaluations and parameter types.
ensemblesweep py --func module_name.function_name \
--var "param1=start:stop:num" \
--var "param2=val1,val2,val3" \
--dry-run
Review the output to ensure the "Total evaluations" is reasonable and the sample combinations look correct.
Run the actual sweep, specifying the number of workers and desired output formats.
ensemblesweep py --func module_name.function_name \
--var "param1=-1.0:1.0:21" \
--var "param2=A,B,C" \
--workers 4 \
--save-csv results.csv \
--quiet
--quiet to suppress libEnsemble logs for cleaner terminal output.--save-csv or --save-json for easy parsing.--save-pandas for Parquet format (best for large datasets).--save-numpy for raw binary data.key=val1,val2: Discrete list.key=start:stop:num: Linear range (np.linspace).ensemblesweep automatically identifies the current working directory.--globus-compute-endpoint <UUID> to execute the grid remotely. However, for complex environments/dependencies, prefer using the programmatic_sweep_api skill to handle data placement and imports correctly.