tffm icon indicating copy to clipboard operation
tffm copied to clipboard

libfm benchmark

Open geffy opened this issue 7 years ago • 3 comments

Need to compare tffm and libfm in terms of speed and quality.

geffy avatar Jul 23 '16 14:07 geffy

tffm is working quite well on my machine, much faster than other single core libraries like libfm and fastFM. But I found a small problem for regression, tffm tends to give higher values than libfm or fastFM, I guess this may be caused by not given max or min of predictions.

In libfm, there is a line

double p = predict_case(data); 
p = std::min(max_target, p);
p = std::max(min_target, p);

I don't think these code is a must, making it configurable definitely offers more choices.

Vimos avatar Aug 15 '16 07:08 Vimos

Another interesting point, tffm seems using a lot more memory, a recent test shows that after init with about 40GB memory, the peak for each epoch may reach 70-80GB, but drops to 40GB at the end of each epoch.

Vimos avatar Aug 24 '16 05:08 Vimos

As I know, TF tends to allocate a lot of memory even if it doesn't actually use it. But you are right, no memory optimization been done here.

geffy avatar Sep 14 '16 09:09 geffy