フィルターのクリア

Java exception, serialization, MATLAB, WEKA, CHIRP

5 ビュー (過去 30 日間)
Krzysztof Fajst
Krzysztof Fajst 2016 年 11 月 12 日
編集済み: Walter Roberson 2016 年 11 月 12 日
I'm using MATLAB-WEKA interface to run some classifiers. But when I use CHIRP classifier and save/load classifier object and try to use itI'm getting Java exception. There is no problem with using this object directly from the memory without saving. There is also no problem for saving/loading and using classifier object from other algorithms like e.g. Spegasos.
According to MATLAB doc object to be saved/load must implement Serializable https://www.mathworks.com/help/matlab/matlab_external/creating-and-using-java-objects.html#f46890
but according to doc from CHIRP it is done already so perhaps some part of implementation is missing or is a MATLAB problem. MATLAB saves\loads this object and don't complain. So my question is how to troubleshoot such problem i.e. how to find out what is missing and where the fault lies.
Krzysztof
Java exception occurred:
java.lang.NullPointerException
at weka.classifiers.misc.chirp.Trainer.tranformTesting(Trainer.java:347)
at weka.classifiers.misc.chirp.Classifier.classifyInstance(Classifier.java:62)
at weka.classifiers.misc.CHIRP.classifyInstance(CHIRP.java:256)
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1778)
at com.mathworks.jmi.MatlabMCR.mtFevalConsoleOutput(MatlabMCR.java:1232)
at com.mathworks.timer.MWCallback$callbackEvent.run(MWCallback.java:502)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:458)

回答 (0 件)

カテゴリ

Help Center および File ExchangeJava Client Programming についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by