test.toml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. [log]
  2. stdout = true
  3. [redis]
  4. name = "recommend-service"
  5. proto = "tcp"
  6. addr = "127.0.0.1:6379"
  7. idle = 20
  8. active = 20
  9. dialTimeout = "1s"
  10. readTimeout = "1s"
  11. writeTimeout = "1s"
  12. idleTimeout = "10s"
  13. expire = "1m"
  14. [Feature]
  15. WeightVector = [3.0519, -1.6184, -2.0771, -1.9381, -1.9873, -1.6225, -2.0000, -1.8740, -1.7568, -1.7802, -1.9143, -1.8643, -4.1616, -2.6550, -2.2589, -2.3561, -2.1690, -1.9138, -1.6899, -1.6309, -1.3955, -1.2116]
  16. [CommonFeature]
  17. [CommonFeature.UserAreaInterest]
  18. Type = "NumMatch"
  19. Values = [1]
  20. Weights = [3.0519]
  21. [CommonFeature.FansNum]
  22. Type = "RangeSplit"
  23. Values = [100, 500, 2500, 10000]
  24. Weights = [-1.6184, -2.0771, -1.9381, -1.9873, -1.6225]
  25. [CommonFeature.CornerSign]
  26. Type = "ReMatch"
  27. Values = ["", ".*人存活", "决赛圈", "正在抽奖", ".*No\\.\\d+", "年度.*主播", "周星主播", "BLS.*"]
  28. Weights = [-2.0000, -1.8740, -1.7568, -1.7802, -1.9143, -1.8643, -1.8643, -1.8643]
  29. [CommonFeature.Online]
  30. Type = "RangeSplit"
  31. Values = [10, 50, 100, 300, 1600, 3600, 6000, 10000, 100000]
  32. Weights = [-4.1616, -2.6550, -2.2589, -2.3561, -2.1690, -1.9138, -1.6899, -1.6309, -1.3955, -1.2116]