View Single Post
  #2  
Old 11-30-2018, 01:34 AM
Degutis Degutis is offline
Junior Member
 
Join Date: Nov 2018
Posts: 3
Default Re: HW8 Q2-6 Converting digit data to libsvm format

Quote:
Originally Posted by GB449 View Post
I am not clear how to convert digit data ("digit symmetry intensity") to the libsvm format ("+/1 a:b c:d ...").

For e.g. for zero versus all will

0.0000000e+00 2.8954102e-01 -4.6441250e+00 from features.train

translate to

1 2.8954102e-01:-4.6441250e+00

Does anyone have transformed files for Qs 2 and 3 that I can use instead of writing a program to do the last minute essay service transformations?


Thanks!
Hello GB449,

I used csv2libsvm.py to convert csv to libsvm data. Currently looking for the ways to convert dataframes to libsvm format. Have you tried to use dataset in grid.py as well?

Best,
R Degutis
Reply With Quote