Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
26 Aug 2009 Using Weka in Matlab Example file how to use weka (written in Java) in Matlab Author: Muhammad Shoaib Sehgal Sehgal, Muhammad Shoaib

Here are some leads which might be helpful

1- From the error it seems the arff files are not available at:

v2 = java.lang.String('WEKA_HOME\trainData.arff');
v4 = java.lang.String('WEKA_HOME\testDATA.arff');

Can you check them and share what you are using Weka_Home?

2- Jut to be clear you are using it on windows? and for Mac/Unix you'd need to use / instead of \ to specify the path.

3- It seems some versions of weka are case sensitive so just make sure you use the same case (lower case) for the file extension.

https://list.scms.waikato.ac.nz/pipermail/wekalist/2008-August/014326.html

26 Aug 2009 Using Weka in Matlab Example file how to use weka (written in Java) in Matlab Author: Muhammad Shoaib Sehgal Skripko, Daria

That's great!

26 Aug 2009 Using Weka in Matlab Example file how to use weka (written in Java) in Matlab Author: Muhammad Shoaib Sehgal Skripko, Daria

26 Aug 2009 Using Weka in Matlab Example file how to use weka (written in Java) in Matlab Author: Muhammad Shoaib Sehgal Skripko, Daria

Hi Muhammad, I find this very usful for me.
But if I run this example in Matlab I've got the following error:

-----------------------------------------------------
 ??? Java exception occurred:
java.lang.Exception:
Weka exception: No source has been specified

General options:

-h or -help
Output help information.
-synopsis or -info
Output synopsis for classifier (use in conjunction with -h)
-t <name of training file>
Sets training file.
-T <name of test file>
....
-E weka.classifiers.bayes.net.estimate.SimpleEstimator
Estimator algorithm

at weka.classifiers.Evaluation.evaluateModel(Unknown Source)

Error in ==> weka_example at 22
Evaluation.evaluateModel(javaObject('weka.classifiers.bayes.BayesNet'),prm);

------------------------------------------------------------------

Could you please help me?

Daria

19 Mar 2008 Using Weka in Matlab Example file how to use weka (written in Java) in Matlab Author: Muhammad Shoaib Sehgal Diaz-Ramirez, Jorge

Excellent file..
Thank

04 Apr 2007 Collateral Missing Value Estimation -- Unix/Linux Compatible Version Collateral Missing Value Estimation software can be used to estimate missing values in the correlate Author: Muhammad Shoaib Sehgal Lowery, Arthur

04 Apr 2007 Collateral Missing Value Estimation -- Unix/Linux Compatible Version Collateral Missing Value Estimation software can be used to estimate missing values in the correlate Author: Muhammad Shoaib Sehgal Sehgal, Rizwan

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com