“People who watched this also watched” algorithm

后端 未结 5 878
攒了一身酷
攒了一身酷 2021-02-14 03:45

I am trying to code an algorithm that acts a bit like Amazon\'s \"People who bought this also bought\".

The difference between the two is that mine is just counting the

5条回答
  •  既然无缘
    2021-02-14 04:21

    I would make one improvement to your idea. When you're figuring out the cliques that go together and deciding which make the strongest relationships you should add a weight against each connection. The easiest way to calculate the weight would be to see how many people who looked at product X also looked at Y. The more views, the stronger the relationship.

提交回复
热议问题