refine
refine(
n_points=10,
max_gap_ratio=0.2,
min_r2_score=0.5,
max_avg_cv=0.15,
max_max_cv=0.3,
)Identifies gaps or high-variance regions and suggests new simulation points.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| n_points | int | Number of new samples to suggest per detected issue. | 10 |
Returns
| Name | Type | Description |
|---|---|---|
| pd.DataFrame | pd.DataFrame: A DataFrame of recommended new input coordinates. |
Examples
# If diagnostics fail, ask for 10 new points to fix it
new_samples = study.refine(n_points=10)
print(new_samples.head())