run_parameter_sweep
Run batch DOE or parameter sweeps on nTop notebooks with explicit input sets or Cartesian grids, then save per-run outputs and a consolidated CSV summary.
Instructions
Run a batch DOE / parameter sweep across multiple input sets using ntopcl.
Provide EITHER parameter_sets (list of explicit input dicts) OR parameter_grid
(dict of {param_name: [v1, v2, ...]} expanded as a Cartesian product).
Args:
notebook_path: Path to the .ntop notebook.
parameter_sets: Explicit list of parameter dictionaries, one per run.
parameter_grid: Cartesian grid dictionary of parameter value lists.
output_dir: Directory to store run_000/, run_001/, ... and sweep_summary.csv.
max_workers: Parallel ntopcl worker processes (default 1).
max_threads_per_run: Pass -m to each ntopcl invocation.
include_properties: Pass -p to include top-level properties in each output.json.
trust_notebook: Pass --trustnotebook if needed.
timeout_per_run: Timeout per individual run in seconds.
export_csv: Write a consolidated sweep_summary.csv table.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"notebook_path": "<notebook_path>"
},
"name": "run_parameter_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| export_csv | No | ||
| output_dir | No | ||
| max_workers | No | ||
| notebook_path | Yes | ||
| parameter_grid | No | ||
| parameter_sets | No | ||
| trust_notebook | No | ||
| timeout_per_run | No | ||
| include_properties | No | ||
| max_threads_per_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |