4.0

4.0 | 1 rating Rate this file 223 downloads (last 30 days) File Size: 75.27 KB File ID: #21204

Matlab Weka Interface

by Matt Dunham

 

24 Aug 2008 (Updated 25 Aug 2008)

No BSD License  

Matlab interface for Weka Classifiers

Download Now | Watch this File

File Information
Description

Weka is a comprehensive open source Machine Learning toolkit, written in Java at the University of Waikato, New Zealand. These functions provide a basic Matlab interface to Weka allowing you to transfer data back and forth and access major Weka features, such as training Classifiers. They have been tested with Weka version 3.5

MATLAB release MATLAB 7.6 (R2008a)
Other requirements Requires Java and Weka, available here: http://www.cs.waikato.ac.nz/ml/weka/
Zip File Content  
Other Files
wekaClassify.m,
wekaNBexample.m,
wekaPathCheck.m,
whelp.m,
bolasso.arff,
iris.arff,
loadARFF.m,
matlab2weka.m,
saveARFF.m,
trainWekaClassifier.m,
weka2matlab.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
31 Oct 2008 Fangqing Peng

what you have write here is so useful to me.
but can you list a intruduction about how to use your files here . thx.

my email: jidoua@126.com

23 Feb 2009 Sunny Mahajan

Hi Matt, I would find this extremely useful if I could use it.
I ran wekaNBexample.m got the following error:

??? Undefined function or variable 'FastVector'.

Error in ==> matlab2weka at 28
    vec = FastVector();

Error in ==> wekaNBexample at 21
train = matlab2weka('iris-train',featureNames,train,classindex);

Can you please help?
-Sunny

07 Apr 2009 leptogenesis

As others have said, the usability could use some work. I just turned a .mat file into a .arff file using this, but at first, I was entering the data matrix the wrong way (should have used the transpose). When I did this, the program created the Instances object with no errors, and would then throw a cryptic nullpointerexception when I tried to write the arff file. It took half an hour going through the weka source code to figure out what was happening--a range check in your program would have saved me that time.

Otherwise, a very useful program!

21 Apr 2009 Philip  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Matt Dunham 22 Oct 2008 10:15:51
probability Matt Dunham 22 Oct 2008 10:15:51
weka Matt Dunham 22 Oct 2008 10:15:51
java Matt Dunham 22 Oct 2008 10:15:51
weka2matlab Matt Dunham 22 Oct 2008 10:15:51
classifier Matt Dunham 22 Oct 2008 10:15:51
matlab2weka Matt Dunham 22 Oct 2008 10:15:51
machine learning Matt Dunham 22 Oct 2008 10:15:51
weka Philip 21 Apr 2009 14:17:59
 

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