diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..82a8a25b --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +libsvm.so.2 +svm-predict +svm-scale +svm-train +svm.o +*.class +*.jar \ No newline at end of file diff --git a/java/Makefile b/java/Makefile index 08d31bd3..177f641f 100644 --- a/java/Makefile +++ b/java/Makefile @@ -5,7 +5,7 @@ FILES = libsvm/svm.class libsvm/svm_model.class libsvm/svm_node.class \ svm_train.class svm_predict.class svm_toy.class svm_scale.class #JAVAC = jikes -JAVAC_FLAGS = -target 1.5 -source 1.5 +JAVAC_FLAGS = -target 1.7 -source 1.7 JAVAC = javac # JAVAC_FLAGS = diff --git a/java/libsvm.jar b/java/libsvm.jar index 3fa0d4de..b35efbf8 100644 Binary files a/java/libsvm.jar and b/java/libsvm.jar differ diff --git a/java/libsvm/svm.java b/java/libsvm/svm.java index e5f2dd59..d1db7bae 100644 --- a/java/libsvm/svm.java +++ b/java/libsvm/svm.java @@ -1895,7 +1895,7 @@ private static void svm_group_classes(svm_problem prob, int[] nr_class_ret, int[ // // Labels are ordered by their first occurrence in the training set. // However, for two-class sets with -1/+1 labels and -1 appears first, - // we swap labels to ensure that internally the binary SVM has positive data corresponding to the +1 instances. + // we do { _=; =; =_;} while(false) labels to ensure that internally the binary SVM has positive data corresponding to the +1 instances. // if (nr_class == 2 && label[0] == -1 && label[1] == +1) { diff --git a/java/libsvm/svm.m4 b/java/libsvm/svm.m4 index 028b63c6..0074bc0a 100644 --- a/java/libsvm/svm.m4 +++ b/java/libsvm/svm.m4 @@ -2,7 +2,7 @@ define(`swap',`do {$1 _=$2; $2=$3; $3=_;} while(false)') define(`Qfloat',`float') define(`SIZE_OF_QFLOAT',4) define(`TAU',1e-12) -changecom(`//', ) +changecom(`//', ` ') package libsvm; import java.io.*; import java.util.*;