ワンクリックで
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.