PSI model stability / 模型稳定性 PSI
psi_stabilityPSI model stability / 模型稳定性 PSI | USE WHEN: population stability index between expected and observed score distributions | ALIASES: PSI, 模型稳定性, 群体稳定性, population stability, 漂移 | RETURNS: PSI 值与稳定性判断
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"expected_probs": "<expected_probs>",
"observed_probs": "<observed_probs>"
},
"name": "psi_stability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_bins | No | 分箱数,默认 10。判定口径:PSI < 0.1 无漂移;0.1~0.25 轻度;>0.25 显著。 | |
| expected_probs | Yes | 开发集(建模期)的预测概率数组,**每个值须在 0~1**。分箱固定按 0~1 等分,超出范围的值会被直方图丢掉而不报错。NaN 自动剔除。 | |
| observed_probs | Yes | 上线后(验证期)的预测概率数组,同样 0~1。**长度可以与 expected 不同** —— PSI 比的是各箱占比,不是逐例配对。 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | ||
| result | Yes | 业务字段,键见 description 的 RETURNS 段 | |
| success | Yes | ||
| data_source | Yes | local_computation|external_corpus|llm_generated|user_data|pending | |
| engine_status | Yes | ok|queued|error|unavailable|not_run |