xlearn icon indicating copy to clipboard operation
xlearn copied to clipboard

how to convert pandas df to libffm data format

Open jerrytim opened this issue 5 years ago • 2 comments

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 avatar Mar 08 '19 22:03 jerrytim

@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!

aksnzhy avatar Mar 09 '19 09:03 aksnzhy

hi,dear have the same problem, could you pls tell me how to deal with it? any API? thx

ucasiggcas avatar Jun 26 '20 11:06 ucasiggcas