Skip to content

Instantly share code, notes, and snippets.

@GiovanniBalestrieri
Last active April 13, 2016 17:44
Show Gist options
  • Save GiovanniBalestrieri/2d1fd7fb6c9424abcaf37bf4fb5b3ec2 to your computer and use it in GitHub Desktop.
Save GiovanniBalestrieri/2d1fd7fb6c9424abcaf37bf4fb5b3ec2 to your computer and use it in GitHub Desktop.
Creates a new folder with the name provided before. Convert the CSV file to ARFF file
testSetWeka="testSetWeka"
#Create Folde if does not exist
mkdir -p ${wekaPath}/${filename}
relativePath=${wekaPath}/${filename}
# Create Arff file
java -cp ${wekaPath}/weka.jar weka.core.converters.CSVLoader -S "2,3" -N "last" ${csvPath}/${testSet} > ${relativePath}/${testSetWeka}.arff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment