Closed martincousi closed 6 years ago
Hi @martincousi,
self.train_w
is a vector of per-sample importance weights.
It's essentially the same thing as sample_weight
param in sklearn
api
Ah ok! I confused self.train_w
with self.w
. Thank you for the quick reply.
I am trying to understand how
tffm
is working but I can't figure out whyself.loss
is obtained by multiplyingself.loss_function
byself.train_w
in the classTFFMCore
. I would have thought thatself.train_w
shouldn't be there...