Hello folks! I know we all have seen sections like "Recommended For you", "You may like it" in various platforms. As a developer, I always thought how they made it. After some research I found out that these are made using Machine Learning methods via python.... Wait a bit!
What about the js developers who write their whole code via JS? I am a developer who uses JS a lot and implementing a full machine learning model for every model is tough. That's why I've made "LightRec" (https://lightrec.vercel.app), a platform for recommendation engines and I'll keep publishing new models here.
The first model is "lr-ibcf".
And, its quite easy to use.
1. Installation:
npm install @lightrec/lr-ibcf
2. Import and Initialize
import { RecEngine } from 'lightrec';
// Create a new recommendation engine
const engine = new RecEngine();
3. Pre-Train (Optional)
const interactions = [
{ userId: 'u1', itemId: 'i1', points: 5 },
{ userId: 'u1', itemId: 'i2', points: 3 },
{
Discussion
Say something first
It all starts with you—share your thoughts now.