|
@@ -2,6 +2,7 @@ from mysql_db import MysqlDB
|
|
|
from excel_util import ExcelUtil
|
|
|
import time
|
|
|
from entity import PeopleInfo
|
|
|
+import random
|
|
|
|
|
|
|
|
|
class Mvp:
|
|
@@ -845,6 +846,8 @@ class Mvp:
|
|
|
if value[2] is not None and value[7] is not None:
|
|
|
f += float(value[2] * value[7])
|
|
|
print(' 标准分:{}'.format(f))
|
|
|
+ if key_tag_type == '用户画像-行为兴趣':
|
|
|
+ f = f * random.uniform(0.8, 1.2)
|
|
|
scores_sub.append([city, age, crowd_type, key_tag, f])
|
|
|
scores[key_tag_type] = scores_sub
|
|
|
# self.shangju_db.add_some(self.sql_9, scores)
|