인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

sbi_simulator_prior_protocol

sbi_simulator_prior_protocol

Prepare simulator, prior, observation, and simulated pair contracts for simulation-based inference workflows.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: sbi_simulator_prior_protocol description: Prepare simulator, prior, observation, and simulated pair contracts for simulation-based inference workflows.

SBI Simulator Prior Protocol

Use this skill when a recovery or implementation task needs to turn a prior and black-box simulator into auditable (theta, x) simulation pairs for neural SBI.

Do not use it to evaluate analytic likelihoods or to train the posterior estimator itself.

Inputs

  • Prior sampler or bounds plus random seed.
  • Simulator callable or simulator specification.
  • Number of simulations.
  • Optional observation x_o.

Outputs

  • Two-dimensional theta and x arrays with matching row counts.
  • Shape metadata and provenance.
  • Failure count and finite-value status.

Workflow

  1. Normalize scalar parameter and observation values to row-major two-dimensional arrays.
  2. Sample parameters from the prior with a deterministic seed.
  3. Run the simulator without requiring likelihood evaluation.
  4. Check row alignment, finite values, and failure counts.
  5. Return provenance for downstream training and recovery logs.

Validation

Run:

python scripts/sim_protocol.py --smoke
python tests/test_sim_protocol.py

Limitations

  • This skill defines the data protocol only; it does not choose SNPE/SNLE/SNRE.
  • Failed simulations must be reported, not silently hidden.
저장한 Skills