xlearn
xlearn copied to clipboard
how to convert pandas df to libffm data format
Hey I am pretty new to Xlearn. Out of curiosity, is there a handy approach to convert a pandas dataframe to the data format that libffm requires, and also doing that directly without I/O (dumping to temp file and loading it with ffm_model.setTrain())?
@jerrytim Hi, I am very sorry that now need to convert pandas dataframe to libffm data format by handle, and xLearn now can only read data from the file. We will support this feature in the near future. Thanks for you support!
hi,dear have the same problem, could you pls tell me how to deal with it? any API? thx