RecTools
RecTools copied to clipboard
fit_partial function for ImplicitALSWrapperModel and LightFMWrapperModel
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