You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
373 B

6 years ago
  1. package main
  2. type UserModel struct {
  3. ID string `json:"id"`
  4. Age int `json:",string"`
  5. //age clusters: a<20 (0), 20<a<40 (1), 40<a<60 (2), 60<a (3)
  6. AgeCluster int
  7. Actions []string
  8. }
  9. type ItemModel struct {
  10. ID string
  11. TRecommended int
  12. TActed int
  13. TScored int //times acted from recommendation
  14. }
  15. var scores []float64
  16. var ranking []ItemModel