I am new to machine learning and I am trying to use logistic regression prediction in liblinear using dataset from here http://www.ats.ucla.edu/stat/data/binary.csv
I am using java to train and test. However even if I run the prediction on the same file, I always get -1 as the prediction for all of them. I never get 100% even if I use the heart_scale provided with lib linear and libsvm. What I am doing wrong?
I am running the following commands in java
java -cp liblinear-1.94.jar de.bwaldvogel.liblinear.Train -s 0 trainFile
java -cp liblinear-1.94.jar de.bwaldvogel.liblinear.Predict -b 1 testFile testFile.model testFile.txt