日常更新
This commit is contained in:
parent
794bb9e1db
commit
c6f19c630f
|
|
@ -14,7 +14,6 @@ from typing import Literal
|
||||||
|
|
||||||
import numpy
|
import numpy
|
||||||
from pyLSHash import LSHash
|
from pyLSHash import LSHash
|
||||||
|
|
||||||
# 导入模块
|
# 导入模块
|
||||||
from pydantic import BaseModel, Field, model_validator
|
from pydantic import BaseModel, Field, model_validator
|
||||||
|
|
||||||
|
|
@ -326,8 +325,6 @@ class RecommenderSystem:
|
||||||
else 0
|
else 0
|
||||||
)
|
)
|
||||||
|
|
||||||
print(pair, similarity)
|
|
||||||
|
|
||||||
# 加权物品的相似度
|
# 加权物品的相似度
|
||||||
items_recall[item_recall]["scores"] += (
|
items_recall[item_recall]["scores"] += (
|
||||||
behaviors["scores"][item_heuristic] * similarity
|
behaviors["scores"][item_heuristic] * similarity
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue