title: Liblinear logistic regression output always -1
body: <p>I am new to machine learning and I am trying to use logistic regression prediction in liblinear using dataset from here <a href="http://www.ats.ucla.edu/stat/data/binary.csv" rel="nofollow">http://www.ats.ucla.edu/stat/data/binary.csv</a></p>
  
  <p>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?</p>
  
  <p>I am running the following commands in java</p>
  
  <p>java -cp liblinear-1.94.jar de.bwaldvogel.liblinear.Train -s 0 trainFile</p>
  
  <p>java -cp liblinear-1.94.jar de.bwaldvogel.liblinear.Predict -b 1 testFile testFile.model testFile.txt</p>