‹ 首页

choose-covariance-estimator

@microprediction · 收录于 2 天前 · 上游提交 1 个月前

Pick which precise covariance estimator to use for a given dataset. Use when you have data X and are unsure which estimator fits its dimension, conditioning, or tail behavior. Wraps precise.suggest() and covariance_features().

适合你,如果你需要为数据集选择协方差估计器但不确定哪个合适。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add microprediction/precise/choose-covariance-estimator
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- microprediction/precise/choose-covariance-estimator
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify microprediction/precise/choose-covariance-estimator
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
333GitHub stars
~389上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 d89c883 · 表述以原文为准
它做什么

装上后,Claude会分析你提供的数据集,根据其维度、条件数和尾部分布等特征,推荐最合适的协方差估计方法,并给出推荐理由和特征摘要。

什么时候触发

当你有一组数据,且不确定该用哪种协方差估计器时,Claude会自动分析并给出建议。

装好后可以这样说
Claude会分析数据特征并推荐。
返回数据集的维度、条件数等特征。
列出得分最高的三种估计器。
技能原文 SKILL.md作者撰写 · MIT · d89c883

Choose a covariance estimator for your data

No estimator wins everywhere, so precise recommends one from observable, truth-free features.

from precise import suggest, covariance_features

suggest(X, top=3)        # -> list of estimator CLASSES, best first
covariance_features(X)   # -> dict of the features behind the choice

X is 2-D (rows = observations, columns = variables). Then:

Est = suggest(X, top=1)[0]
est = Est()
est.fit(X)               # or stream rows with partial_fit
cov = est.covariance_
What it keys on

covariance_features(X) returns p, n, p_over_n, effective_rank, sphericity, condition_number, mean_abs_offdiag_corr, avg_excess_kurtosis — all computed from the sample, none requiring the unknown truth. Internally suggest uses a frozen, numpy-only decision tree; broadly it routes high p/n or ill-conditioned data to shrinkage/factor estimators and heavy-tailed data to robust ones.

Guardrail (important)

suggest is a heuristic trained on synthetic regimes. In leave-one-generative-family-out tests it does not reliably beat the single best fixed estimator on a wholly novel data-generating family — it generalizes across samples within familiar regimes, not to arbitrarily new structure. So:

  • Treat its output as a strong shortlist, not an oracle.
  • If the decision matters, verify the shortlist out-of-sample on your own data with the score-covariance-estimate skill, rather than trusting the recommendation blind.
  • A well-conditioned shrinkage estimator (LedoitWolfCovariance / OASCovariance) is a safe default when in doubt.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。