I try to convert my CSV file to LIBSVM by using phraug python scripts. (https://github.com/zygmuntz/phraug)
Here is my dataset, which contains a label on first position and a header: https://www.dropbox.com/s/j4wsh5pde76o8ax/adclickwithoutid.csv
I saw a posting here on stackoverflow(Converting CSV file to LIBSVM compatible data file using python) and tried his code:
Alexanders-iMac:documents arigge$ python csv2libsvm.py adclickwithoutid.csv libsvm.data 1 True
Traceback (most recent call last):
File "csv2libsvm.py", line 51, in <module>
new_line = construct_line( label, line )
File "csv2libsvm.py", line 15, in construct_line
if float( item ) == 0.0:
What am I missing?