Shopper’s Serendipity : Know Why They Buy ‘That’ w/ ‘This’ via K-NN on Graph

Aniket Hingane
11 min readMar 30, 2024

Don’t just follow the trends, create them ! Let’s turn those hidden connections into a sales surge!

Market Basket Analysis via K-Nearest Neighbor on eCommerce Graph Network

From code in this Proj : Personalize Discovery, Curate Companions, Run K-NN Algo, Let’s go !

Imagine stepping inside your customers’ minds. Not just what they need, but what they secretly desire. What if you could predict the perfect add-on purchase, the one they didn’t even know they wanted until they saw it? With the power of graphs and K-nearest neighbor Algorithm, that untapped potential becomes your sales goldmine. Get ready to discover the hidden connections driving your customers’ choices!

This is our Shopping Product Space

What is this article about?

Showcase how employing K-Nearest Neighbors (K-NN) algorithm, coupled with graph database, can provide valuable insights if shoppers buy certain products, what auxiliary products they might need. Like with purchase of laptop, they will need insurance, cooling pad, wireless mouse etc..

Why Read It?

  • Understand a complex machine learning concept (K-NN) in a practical setting

--

--

Aniket Hingane

Passionate about applying AI to practical uses,I simplify complex concepts & designs in concise articles, making complexity accessible one short piece at a time