RecTools icon indicating copy to clipboard operation
RecTools copied to clipboard

fit_partial function for ImplicitALSWrapperModel and LightFMWrapperModel

Open chezou opened this issue 1 year ago • 8 comments
trafficstars

Feature Description

Implicit's ALS and LightFM provide partial_fit capability. https://benfred.github.io/implicit/api/models/cpu/als.html#implicit.cpu.als.AlternatingLeastSquares.partial_fit_users https://benfred.github.io/implicit/api/models/cpu/als.html#implicit.cpu.als.AlternatingLeastSquares.partial_fit_items https://making.lyst.com/lightfm/docs/lightfm.html#lightfm.LightFM.fit_partial

It would be great if RecTools had a standardized way to use them for incremental model updates.

Why this feature?

If we can use partial_fit, we can avoid full re-training every time. This is beneficial when the original model is trained by a massive dataset.

Additional context

No response

chezou avatar Aug 10 '24 02:08 chezou