技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
modeling-data【数据与研究】Build, mutate, inspect, and transform PyMC models with Model contexts, data containers, dimensions, logp/debug tools, and do/observe workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a task needs a PyMC model graph to be built, mutated, inspected, or conditionally transformed before inference. It covers pm.Model, named variables, observed data, coords/dims, pm.Data, pm.set_data, pm.Deterministic, pm.Potential, initial points, practical logp/debug helpers, graph visualization, pm.do, pm.observe, and the experimental pymc.dims surface.
pm.do, pm.observe, or pymc.dims routing.pm.Data, pm.set_data, pm.do, pm.observe, and optional posterior-predictive shape changes.with pm.Model(...) as model: or object-style model=... registration.model.named_vars, model.free_RVs, model.observed_RVs, model.data_vars, model.deterministics, model.coords, and model.named_vars_to_dims.coords, dims, pm.Data, model.set_data, and pm.set_data for reusable models and prediction-data resizing.pm.Deterministic and pm.Potential.model.debug, and model.to_graphviz.pm.do interventions or pm.observe conditioning..dist() component distributions, custom distributions, custom logp/logcdf, support-point, and distribution transform internals: use ../distributions-logprob/SKILL.md.../inference-predictive/SKILL.md.../advanced-workflows/SKILL.md.model=model.coords/dims as shape and output-label metadata, not xarray-style label alignment.pm.Data for inputs you plan to replace; pm.set_data can change values and shape but not rank, and coordinate lengths must stay synchronized.model.initial_point() as the safest starting point for compiled logp checks because it uses value-variable names, including transformed names such as sigma_log__.pm.do and pm.observe return new models. Do not assume the original model was mutated.