AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Bi Adaptive Threshold

skill-agentscope-ai-qwenpaw-data-bi-adaptive-threshold · by agentscope-ai

通过量化历史数据的自然波动幅度,自适应计算判定阈值。当需要从数据本身确定阈值(如波动阈值、影响度阈值等)、而非使用固定值时调用。仅适用于日/周粒度阈值确定。

No reviews yet
0 installs
19 views
0.0% view→install

Install

$ agentstack add skill-agentscope-ai-qwenpaw-data-bi-adaptive-threshold

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-agentscope-ai-qwenpaw-data-bi-adaptive-threshold)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
22d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Bi Adaptive Threshold? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

bi-adaptive-threshold

基于标准差衡量数据的自然波动幅度,从数值序列中自适应计算阈值,常见场景:

  • 异常检测:确定指标波动率的异常阈值
  • 影响度判定:确定事件影响度的显著性阈值
  • 其他需要从数据分布中推导合理边界的场景

> 适用范围:仅适用于日粒度和周粒度的阈值计算。

执行步骤

1:数据准备

包含时间序列数据的 CSV 文件,至少包含以下两列:

| 列 | 说明 | 示例 | | ------ | -------------------------- | ---------- | | 日期列 | 时间标识 | 日期 | | 数值列 | 需要计算阈值的目标数值序列 | 访问用户数 |

示例:

日期,访问用户数
2025-01-01,10000
2025-01-02,10500
2025-01-03,9800

若上游步骤已产出可用数据文件则直接使用,否则自行取数。默认取近 90 天数据,若可用数据不足 90 天则取全部。

2:执行阈值计算

按以下优先级选择计算方式,命中即停:

方式一:使用脚本

路径: scripts/adaptive_threshold.py

原理:

  1. 检查数据量是否充足(即:数据行数 --default-threshold 是数据不足或波动剧烈时的兜底值,调用时应根据指标类型传入不同的值:

> > - 量值指标:默认 10%(即 --default-threshold 0.10) > - 率值指标:根据率值所在区间差异化设置: > - 率值在 [40%, 60%]:±5%(即 --default-threshold 0.05) > - 率值在 [20%, 40%) 或 (60%, 80%]:±3%(即 --default-threshold 0.03) > - 率值在 [0%, 20%) 或 (80%, 100%]:±2%(即 --default-threshold 0.02

调用示例

python scripts/adaptive_threshold.py \
  --input-file data.csv \
  --date-col "日期" \
  --metric-col "访问用户数"

输出格式

# 正常
threshold: 0.14

# 数据不足
threshold: 0.10 (数据不足,使用默认阈值)

# 波动剧烈
threshold: 0.10 (波动剧烈,使用默认阈值)
方式二:自行实现

若脚本不适用于当前场景(如数据结构不匹配、场景特殊、用户有自定义需求等),基于上述核心思想自行实现阈值计算。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.