|
@@ -857,6 +857,8 @@ class Mvp:
|
|
print(' 标准分:{}'.format(f))
|
|
print(' 标准分:{}'.format(f))
|
|
if key_tag_type == '用户画像-行为兴趣':
|
|
if key_tag_type == '用户画像-行为兴趣':
|
|
f = f * random.uniform(0.8, 1.2)
|
|
f = f * random.uniform(0.8, 1.2)
|
|
|
|
+ if f >= 1:
|
|
|
|
+ f = f*random.uniform(0.05, 0.35)
|
|
scores_sub.append([city, age, crowd_type, key_tag, f])
|
|
scores_sub.append([city, age, crowd_type, key_tag, f])
|
|
scores[key_tag_type] = scores_sub
|
|
scores[key_tag_type] = scores_sub
|
|
# self.shangju_db.add_some(self.sql_9, scores)
|
|
# self.shangju_db.add_some(self.sql_9, scores)
|