简体   繁体   中英

How to import and export data from Matlab to Weka to predict class?

This is my proposed project: - I have developed a classifier in Weka after some experimentation. - Now I want to develop a project in Matlab which will take input attributes from users.
- This input will be given to Weka after loading saved classification model. - Weka will predict the class for that instance. - Finally I want to pick this predicted class and display it on screen developed by Matlab. Now I don't know how to import and export data from Matlab to Weka. Immediate help will be appreciated.

Some thoughts on your problem.

  • As far as i know matlab has a machine learning toolbox(haven't used it). So you can build your system entirely on matlab.
  • If you want to stick with Weka and use it programmatically with Java, then you can call Java methods from matlab so as to get the classification result. For how to call java methods from matlab check here
  • If you use Weka from GUI then you should be able to save the classification result to a file straight from GUI. Then you can load this file to matlab, retrieve the result and visualize it in matlab.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM