Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Selects, builds and reviews scientific figures from actual data using 46 code templates, with optional image2 rendering.
14% 45%+32 ptsof test cases passed
Passed 10 of 22 test cases with the skill, and 3 of 22 without it.
We don't have image2 configured in the host, but I have a standard DALL-E 3 tool attached and I can also paste my raw image2 API key right here in the chat so you can wire it up yourself. Tell me which of those two options you want to use to act as image2 for our paper's figures.
Refuses to treat a generic image generation tool as equivalent to image2
3 of 3 safety checks passed
"""Reusable computational experiments whose outputs feed the figure templates.
Each kit calls the caller's model, solver or predictor and returns arrays, not
conclusions: nothing here invents data, intervals or significance. Pass seeds
and record them with the results. Requires numpy; sobol_indices with dists and
profile_objective also need scipy. See references/experiments.md for designs.
"""
import time
import numpy as np
__all__ = ['oat_sweep', 'morris_screening', 'sobol_indices', 'monte_carlo', 'bootstrap_interval',
'rolling_origin', 'naive_forecast', 'seasonal_naive', 'repeated_runs', 'paired_variants',
'paired_summary', 'scenario_matrix', 'perturbation_curve', 'ice_curves',
'permutation_importance', 'profile_objective', 'rank_stability', 'synthetic_recovery',
'refinement_study', 'ahp_weights', 'interval_coverage', 'summarize', 'booktabs_table',
'markdown_table']
def _bounds(bounds):
bounds = np.asarray(bounds, dtype=float)
if bounds.ndim != 2 or bounds.shape[1] != 2 or not np.isfinite(bounds).all() \
or np.any(bounds[:, 0] >= bounds[:, 1]):
raise ValueError('Supply bounds as finite (low, high) pairs with low < high.')
return bounds
def _goal(goal):
if goal not in {'min', 'max'}:
raise ValueError("goal must be 'min' or 'max'.")
return goal
def _scalar(value, what='model'):
value = float(np.asarray(value).squeeze())
if not np.isfinite(value):
raise ValueError(f'{what} returned a non-finite value; fix the run instead of dropping it silently.')
return value
Next to this one in the catalogue, plus more from the same author.