Code

Programming Languages: Java

License: GNU General Public License version 2.0 (GPLv2)

Repositories

browse code, statistics svn co https://java-ml.svn.sourceforge.net/svnroot/java-ml java-ml

Show:

What's happening?

  • ARFFHandler IndexOutOfBounds

    ARFFHandler.java throws an index out of bounds when the class index is -1. Comparing with FileHandler.java, I believe the change is from this: if (i > classIndex) values[i - 1] = val; To this if (i != -1 && i > classIndex) values[i - 1] = val;.

    2012-03-21 10:09:42 PDT by nobody

  • Comment: LibSVM.getWeights()

    Update: now that I've looked back at the source code, I got this in LibSVM.buildClassifier: double w_list[][][] = new double[model.nr_class][model.nr_class - 1][model.SV[0].length]; // ... Code for Calculating w_list ... weights = new double[model.SV[0].length]; for (int i = 0; i < model.nr_class - 1; ++i) { for (int j = i + 1, k = i; j < model.nr_class; ++j, ++k) { for (int...

    2012-01-07 03:19:19 PST by ttmd

  • LibSVM.getWeights()

    Dear Sirs, I'm using Java-ml for my project which is a multi-class classification problem. I successfully trained my data using Linear (kernel_type = svm_parameter.LINEAR) LibSVM, but I want to get the weights for each class - which, as I understand, the parameters for my hypothesis. I used the method LibSVM.getWeights(). As I have 20 classes and 400 features, I expected to get a...

    2012-01-07 02:16:07 PST by ttmd

Our Numbers