Explorar el Código

mvp: 标准分值计算规则调整

Signed-off-by: binren <zhangbr@elab-plus.com>
binren hace 5 años
padre
commit
f90819bd07
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      mvp.py

+ 2 - 0
mvp.py

@@ -857,6 +857,8 @@ class Mvp:
                 print('     标准分:{}'.format(f))
                 if key_tag_type == '用户画像-行为兴趣':
                     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[key_tag_type] = scores_sub
             # self.shangju_db.add_some(self.sql_9, scores)