Principle Components

[email protected]
Newsgroups gmane.comp.ai.weka
Message-ID <163516394304.20049.10596761801454665114@sys-mailman-prd.its.waikato.ac.nz>
Hi Guys,

I seem to be having issues running the Principle components in the WEKA API, using JDK 1.8. Using any WEKA jar file beyond 3.8.0 I get the error: no/uib/cipr/matrix/Matrix.

My Code is as follows, note this works just fine using WEKA 3.6.0 or WEKA 3.7.0 but the only issue is I need to get the correlation matrix generated by the later versions of WEKA. The code is fairly standard and I'm certain the issue is with the library but I'm very stuck as to how to fix it.

        BufferedReader reader = new BufferedReader(new FileReader("src/featureset39.arff"));

        ArffLoader.ArffReader arff = new ArffLoader.ArffReader(reader);
//        pca = new PrincipalComponents();
        data = arff.getData();
        data.setClassIndex(data.numAttributes() - 1);
        PrincipalComponents pca = new PrincipalComponents();
        pca.buildEvaluator(data);
        pca.setVarianceCovered(0.9);
       
        data = pca.transformedData(data);
        System.out.println(data);
        System.out.println(data);
_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.