libfm not running properly

596 views
Skip to first unread message

孙笑寒

unread,
Sep 28, 2015, 7:48:02 AM9/28/15
to libFM - Factorization Machines
Dear all, I am a new user to libFM and I am testing libFM on movieLens data, I run libfm using the following format, but  the program generate some output like below and stopped, anyone knows what is wrong?

../libfm-1.42.src/bin/libFM -task r -train U1_Train_random_1M.csv.libfm -test U1_Test_random_1M.csv.libfm -dim ’1,1,9746’ -iter 1000 -method sgd -learn_rate 0.01 -regular ’0,0,0.01’ -init_stdev 0.1 -out output.libfm.out -verbosity 1 -rlog
----------------------------------------------------------------------------
libFM
  Version: 1.4.2
  Author:  Steffen Rendle, sre...@libfm.org
  WWW:     http://www.libfm.org/
This program comes with ABSOLUTELY NO WARRANTY; for details see license.txt.
This is free software, and you are welcome to redistribute it under certain
conditions; for details see license.txt.
----------------------------------------------------------------------------
Loading train...
has x = 1
has xt = 0

" at character arse line "4 0:1 1:1

孙笑寒

unread,
Sep 28, 2015, 10:33:20 AM9/28/15
to libFM - Factorization Machines
I finally found out that ,this is due to encoding, I encode the input file in ascii format, then it begin to run

Thierry Silbermann

unread,
Sep 29, 2015, 5:18:33 AM9/29/15
to libFM - Factorization Machines

chenkai...@gmail.com

unread,
Mar 11, 2016, 3:36:38 AM3/11/16
to libFM - Factorization Machines
在 2015年9月28日星期一 UTC+8下午7:48:02,孙笑寒写道:
你好,我也在学习libfm,方便给下qq联系吗?想咨询下怎么使用,谢谢!
Message has been deleted

chenkai...@gmail.com

unread,
Mar 20, 2016, 7:55:10 AM3/20/16
to libFM - Factorization Machines
where can i find train and test data?


在 2015年9月28日星期一 UTC+8下午7:48:02,孙笑寒写道:
Dear all, I am a new user to libFM and I am testing libFM on movieLens data, I run libfm using the following format, but  the program generate some output like below and stopped, anyone knows what is wrong?

hugo.e...@gmail.com

unread,
May 20, 2016, 8:10:35 AM5/20/16
to libFM - Factorization Machines
Le lundi 28 septembre 2015 16:33:20 UTC+2, 孙笑寒 a écrit :
Hi,

I get the same error as you did, but my file is already encoded in us-ascii. Do you know how to correct it?

Thanks!

anuragre...@gmail.com

unread,
Sep 30, 2016, 1:05:40 AM9/30/16
to libFM - Factorization Machines
I am also getting the same error cannot parse line " 0:1 1:1" at character. Any idea how to resolve it ?

Thierry Silbermann

unread,
Oct 1, 2016, 9:43:05 AM10/1/16
to libFM - Factorization Machines
Please always try to give the command line you are using and also a sample of your training file to see where the problem is.

In your example, The format is always something like "0 0:1 1:1" you are missing the target in your line (First number)

zzyz...@gmail.com

unread,
Jan 25, 2018, 6:43:12 AM1/25/18
to libFM - Factorization Machines
在 2016年5月20日星期五 UTC+8下午8:10:35,hugo.e...@gmail.com写道:
If you run libFM in windows, please ensure use '\n' to start a new line.
Reply all
Reply to author
Forward
0 new messages