360 Secure SkillHub
360 安全技能中心

jinko-task-cmaes

该 Skill 依据已确认的模型、参数先验与优化器选项,通过 Jinkō SDK 创建并运行 CMA-ES 校准,返回状态、性能指标与最佳样本结果;用户可选用后处理对已完成校准做可辨识性与预测带的不确定性评估。核心流程依赖外部 Jinkō 平台、JINKO_API_KEY 及若干未随包提供的参考文件和脚本。

分类:数据
novainsilico
热度 0.66
最近更新 2026-12-05 05:10:09

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add novainsilico/jinko-skills/jinko-task-cmaes
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
jinko-task-cmaes
description
Execute a CMA-ES calibration from confirmed Jinkō inputs: assemble the model, protocol, output sets, fitness data tables, parameter priors, and optimizer options; create and run the Calibration; and return the supported results. Optionally, on request, qualify the parameter uncertainty of a completed CMA-ES calibration: identifiability, compensations, and prediction bands, in a Jinkō document. Use when the user wants to perform a CMA-ES calibration, or to check which calibrated parameters the data identify, not when they need to choose a calibration strategy, infer priors, design objectives, or decide whether results are acceptable.
compatibility
Check set-up with jinko-sdk-setup. Creating and running calibrations requires write and run permissions. The optional uncertainty qualification needs numpy, scipy, pandas, and matplotlib.
metadata
{"author":"Nova In Silico","requires_sdk":">=1.25,<2.0"}
license
MIT

CMA-ES Calibration Task

Execute a confirmed calibration specification. Do not invent objectives, constraints, parameter priors, optimizer options, or acceptance criteria.

PREREQUISITE: This skill needs an initialized jinko-sdk connection and an SDK satisfying its metadata.requires_sdk range. Run the jinko-sdk-setup skill (../jinko-sdk-setup/SKILL.md) and proceed only once its check passes. Use JINKO_API_KEY when it is set. Only without a key, call get_session_code again before this skill's own SDK process, because a session code can be exchanged only once. If that skill is not found, install it from novainsilico/jinko-skills.

Inputs

Require:

  • a model SID;
  • parameter priors with physical bounds;
  • seed, thresholdWeightedScore, numberOfIterations, and populationSize;
  • at least one fitness source: calibration-ready data tables and/or an advanced output set containing objectives;
  • any protocol, simple output set, advanced output set, folder, and name needed by the specification.

If quantitative evidence has not yet been converted into a calibration-ready table, use jinko-task-extract-data-table. Use jinko-data-table, jinko-output-set, jinko-model, and jinko-protocol only for their respective Jinkō object mechanics.

Workflow

  1. Resolve every input to its intended SID and snapshot. Present missing or ambiguous inputs instead of guessing.
  2. Use jinko-calibration-cmaes and its bundled creation script. Review its dry-run output before applying it. The script owns parameter encoding, fitness-table eligibility, bound scaling, creation, and post-creation sanity; stop on an error and surface warnings. By default, scale every plain obsId (Scale bounds). Ask the user before you scale a log-scale or zero-target observable (jinko-calibration-cmaes, references/creating-a-calibration.md); to exempt one, build the data table designs in Python.
  3. Return the created calibration SID, revision, snapshot, URL, and effective options for confirmation.
  4. Use the lower-level run script to perform pre-launch sanity, launch, and wait for a terminal state. Do not relaunch a terminal snapshot. Update the existing calibration (for example with calibration.set_components(...) from jinko-calibration-cmaes) so the intended change has a new snapshot; create a calibration only for an independent configuration.
  5. Use the lower-level inspection interfaces to collect the final status, stopping reason, performance, results summary, objective weights, and the patient sorted first by optimizationWeightedScore when available. Fetch per-patient scalars, timeseries, errors, or augmented data tables only when their required selectors are present in the result metadata.

Optional uncertainty qualification

After a completed run, offer the user a post-calibration uncertainty qualification, and run it only when the user accepts or asks for it. It also applies to a completed calibration that the user names. Ask the user for the explored range: a factor (best / f to best x f, default f = 2), ranges per parameter, or the prior bounds. Then follow references/uncertainty-qualification.md.

Return

Return:

  • calibration SID, revision, snapshot, and URL;
  • effective input references, priors, and optimizer options;
  • sanity warnings, terminal status, stopping reason, and performance;
  • supported result payloads and best-patient identity, with the iteration and scenario arm needed for subsequent result calls;
  • a concise account of unavailable requested outputs.

Do not claim a separate run ID, convergence analysis, score-evolution curve, best-patient parameter values, parameter posterior, or simulation-vs-data plot unless the returned API payloads actually provide the required data. By default, draw the plots that the payloads support with the Jinkō plot style (jinko.plotting; see jinko-trial, references/trial-plots.md).