android - Error trying to call .buildClassifier (Weka) in Java AndroidStudio -
i trying use weka in android studio. , stuck @ line: linearregresion.buildclassifier(data); its red underlined , says: unhandled exception:java.lang.exception i trying other ways , different dataset , allways underlined @ .buildclassifier //test: naivebayes nb = new naivebayes(); nb.buildclassifier(dataset); //unhandled exception classifier cmodel = (classifier)new linearregression(); cmodel.buildclassifier(data); //unhandled exception trying fix hours, couldn't find solution on internet,i think missing maybe need import more? i doing tutorial code should work. tutorial: http://www.ibm.com/developerworks/opensource/library/os-weka3/index.html whole code import weka.*; import weka.classifiers.trees.j48; import weka.core.*; import weka.classifiers.classifier; import weka.core.instance; import weka.core.instances; import weka.classifiers.functions.linearregression; import weka.classifiers.bayes.naivebayes; public class meni extends acti...