pyFM
pyFM copied to clipboard
Incorrect format
I am trying to use libFM n the Frappe dataset. However, I get the following error on running the code:
Original exception was:
Traceback (most recent call last):
File "fm.py", line 19, in
Is there some problem in the input format of the training and/or test dataset? My training and test dataset are in the .mat format
Hey,
It might be an issue with the input format. You want to look at some of the solutions here - http://stackoverflow.com/questions/19699367/unicodedecodeerror-utf-8-codec-cant-decode-byte
I used .txt files as input. I ran pyFM on the Frappe data set, where the training and test data set contain the columns: user_id, app_id, rating and context_id (the rating is 1 for each row) and I get FM MSE of 0.0000. Does pyFM work on files with binary ratings?
Does pyFM work on files with binary ratings?
It should. Do you have a link to the Frappe dataset?
Yes, this is the link: http://baltrunas.info/data/CARS2_code.zip cars2_frappe_datasplit.mat contain the training, test and validation dataset. Please let me know if the problem is identified.
How should the the variable preds look? Should it be a vector containing the recommended item_ids?