Encountered " at character 0rse line "0 error while using libFM_with_BPR

39 views
Skip to first unread message

张土豆

unread,
Jul 17, 2018, 11:44:36 PM7/17/18
to libFM - Factorization Machines
I executed 
./libFM -task r -top_k 10 -iter 5 -out y_pred.txt -method bpr -train train.libsvm -test test.libsvm -dim '1,1,8' -relation feature_t,label_t
and I set train.libsvm and test.libsvm to null text files.
The output information is :
Loading train...
has x = 1
has xt = 0
num_rows=0 num_values=0 num_features=0 min_target=3.40282e+38 max_target=-3.40282e+38
Loading test...
has x = 1
has xt = 0
num_rows=0 num_values=0 num_features=0 min_target=3.40282e+38 max_target=-3.40282e+38
#relations: 2
has x = 1
has xt = 0
data... num_cases=110001 num_values=55017091 num_features=13269
has x = 1
has xt = 0
data... 
" at character 0rse line "0
I don't understand what it means. Dose it indicate that I have a 0 in the wrong place? But where?


张土豆

unread,
Jul 18, 2018, 4:08:10 AM7/18/18
to libFM - Factorization Machines
It was because my label_t.x was not in libsvm format......And now it has been solved.

在 2018年7月18日星期三 UTC+8上午11:44:36,张土豆写道:
Reply all
Reply to author
Forward
0 new messages