DefaultConfidenceConfig 返回默认置信度配置。
()
| 28 | |
| 29 | // DefaultConfidenceConfig 返回默认置信度配置。 |
| 30 | func DefaultConfidenceConfig() ConfidenceConfig { |
| 31 | return ConfidenceConfig{ |
| 32 | DecayHalfLife: 30 * 24 * time.Hour, // 30天 |
| 33 | MinConfidence: 0.20, |
| 34 | CorroborationBoost: 0.05, |
| 35 | MaxCorroborationBoost: 0.20, |
| 36 | RecencyWeight: 0.3, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // ConfidenceCalculator 置信度计算器。 |
| 41 | type ConfidenceCalculator struct { |
no outgoing calls