计算方案的缺点和改建方案

This commit is contained in:
2024-09-05 08:40:31 +08:00
parent 763276d623
commit 43c7ce9d6a
2 changed files with 11 additions and 0 deletions

View File

@@ -154,3 +154,14 @@ composite_score = calculate_composite_score(views, favorites, likes, comments, s
print("Composite Score:", composite_score)
```
# 算法缺点
## 问题
这种融合的计算方式会导致辛普森悖论
![输入图片说明](../static/计算方式的缺点.jpg)
## 改进方案
将 1-5 的分数值换成多维的评分向量,比如 [0.2, 0.3, 0.5, 0.1, 0.1],这样每个维度的权重可以不同,
当然计算时消耗的资源也会增加。

BIN
docs/static/计算方式的缺点.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 KiB