Reading test set fails & classbalancer

classic Classic list List threaded Threaded
2 messages Options
rby
Reply | Threaded
Open this post in threaded view
|

Reading test set fails & classbalancer

rby

Someone knows what to do to read an Arff test set generated by Weka as a
"supplied test set"?
I get the following error: Couldn't read object: file name. Invalid stream
header: 4072656C

Also seems that if you generate a model with a the Classbalancer filter and
you save the test file with the weights, the "supplied test set" interface
also does not accept weighted sets. Is this the case?

Thanks
Ric



--
Sent from: https://weka.8497.n7.nabble.com/
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Reading test set fails & classbalancer

Eibe Frank-3
Are you sure you are saving the data as an .arff file and not a .bsi (binary format) file? Saving as an .arff file with instance weights and using that as the test set seems to work for me. (However, there does seem to be a problem currently when trying to use a .bsi file as the specified test set in the Classify panel.)

The error message you posted indicates that Java's code for reading a serialised object is being called. AFAIK, the only WEKA data reader that uses this function is the reader for .bsi files.

If the above diagnosis is incorrect, could you spell out the steps you took in more detail?

Cheers,
Eibe

On Sun, Sep 1, 2019 at 4:41 PM rby <[hidden email]> wrote:

Someone knows what to do to read an Arff test set generated by Weka as a
"supplied test set"?
I get the following error: Couldn't read object: file name. Invalid stream
header: 4072656C

Also seems that if you generate a model with a the Classbalancer filter and
you save the test file with the weights, the "supplied test set" interface
also does not accept weighted sets. Is this the case?

Thanks
Ric



--
Sent from: https://weka.8497.n7.nabble.com/
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html

_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html