java


Why “java.lang.ClassNotFoundException: weka.core.NominalAttributeInfo” error in Java weka Android Studio?


I am creating a machine learning app in Android using weka, but I get an error while creating classifier from pre-trained model.
Following is my Android code snippet:
AssetManager am = this.getAssets();
InputStream stnonstmodel = am.open("stnonstgoodmodel.model");
Classifier cls= (Classifier) weka.core.SerializationHelper.read(stnonstmodel); // I am getting error on this line
Also, it must be noted that the classifier returns null whenever used after this line.
Printing cls.toString() gives "Classifier not built" in Android.
My error log is :
java.lang.ClassNotFoundException: weka.core.NominalAttributeInfo
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:309)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:2263)
at java.io.ObjectInputStream.readNewClassDesc(ObjectInputStream.java:1641)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:657)
at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:1782)
at java.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java:761)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1983)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:1940)
.
. //Similar error lines//
.
Any guesses as to why this is happening?

Related Links

Java Counter not counting [duplicate]
how to make textArea scrollable in nokia asha sdk1.0
Rest-Assured XSD References Other XSDs
Translate int into string/Translate int into source
AbstractTableModel Implementation
Java - Stream is closed
why is my program ignoring my if else statement?
Call another java program when an android app makes a request [closed]
Thread Sleep While processing JMS messages
Read a file separated by tab and put the words in an ArrayList
How to get comboBox value?
How to shorten a string empty comparison?
Running JUnit Tests on embedded glassfish 4 causing WARNING: AS-CDI-005
How to insert for statement in java email message
SimpleDateFormat Unexpected Success with Phone Number
How to create a JFrame with a title

Categories

HOME
java
clips
vbscript
echarts
windows-10-universal
communication
zend-framework3
moonmail
dtrace
opentracing
pc
text-rendering
beyondcompare
lucene.net
swingx
scriptcs
csrf-protection
tooltipster
greendao
maquette
libuv
objectanimator
oracle-fusion-middleware
automake
uft-api
android-fingerprint-api
user-controls
firebase-admin
android-mediaprojection
isbn
segment
react-scripts
python-c-api
blogengine.net
alphabet
return-value
tropo
darcs
worker-thread
jspdf-autotable
hittest
account-kit
smart-table
eventkit
url-pattern
fputcsv
markojs
netmq
kendonumerictextbox
maven-tomcat-plugin
teamcity-8.0
sdhc
arcanist
vstest.console.exe
lustre
offloading
xc16
gadt
fluentautomation
undefined-reference
rtmfp
srs
batterylevel
http-unit
itmstransporter
funscript
qtkit
enter
hgsubversion
bigcouch
work-stealing
nsdatecomponents
gnu-prolog
genshi
horizontal-accordion
netbeans-7.1
file-comparison
celltable
floating
getresponsestream
iweb
privilege
msdev

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App