Trouble with Dl4jMlpClassifier

Paul <[email protected]>
Newsgroups gmane.comp.ai.weka
Message-ID <CAASwtFcUpaeSNQUZP97M2DxUhoxNCLkb=hg9Myz-W_PsPh1EkA@mail.gmail.com>
Morning. I'm trying to classify images. I've created an ARFF file using
.ImageDirectoryLoader with the result being:

@relation image_dataset

@attribute image_path string
@attribute class numeric
@data
21906c17ad24ecbf62536c097c1ec684.jpg,3
68291db7341eb2b7d2dcea7ed5f4122d.jpg,90
f51eb63bbb92b77c89422d9fd2cb976f.jpg,40
.
.
.

I open that file using explorer;
1. select Dl4jMlpClassifier as the classifier
2. and select .ImageInstanceIterator as the iterator and select the folder
that has the images
3. leave pretty much all other as defaults

When I try to run it in the explorer I get:
Attribute isn't nominal, string or date

When I try to run the command line it stops with the following output:
java.io.NotSerializableException:
weka.classifiers.functions.Dl4jMlpClassifier$1
        at
java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185)
        at
java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553)
        at
java.base/java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:442)
        at
weka.classifiers.functions.Dl4jMlpClassifier.writeObject(Dl4jMlpClassifier.java:437)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at
java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1145)
        at
java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497)
        at
java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433)
        at
java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
        at
java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
        at weka.core.SerializedObject.<init>(SerializedObject.java:93)
        at weka.core.SerializedObject.<init>(SerializedObject.java:72)
        at
weka.classifiers.AbstractClassifier.makeCopy(AbstractClassifier.java:104)
        at
weka.classifiers.evaluation.Evaluation.evaluateModel(Evaluation.java:1591)
        at weka.classifiers.Evaluation.evaluateModel(Evaluation.java:668)
        at
weka.classifiers.AbstractClassifier.runClassifier(AbstractClassifier.java:141)
        at
weka.classifiers.functions.Dl4jMlpClassifier.main(Dl4jMlpClassifier.java:325)


Any assistance appreciated.

Thanks
/paul

_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.