The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"ModelLoader Error
Hi,
I try to load a Naive Bayes Model from a .mod-File with ModelLoader, and it returns
Cannot read from XML stream, wrong format: com.rapidminer.operator.learner.bayes.DistributionModel.
Thanks
Peter
I try to load a Naive Bayes Model from a .mod-File with ModelLoader, and it returns
Cannot read from XML stream, wrong format: com.rapidminer.operator.learner.bayes.DistributionModel.
Exception: com.rapidminer.operator.UserErrorAny Ideas on how to load the model?
Message: Could not read file 'C:\....\bayes-model-14_1.mod': Cannot read from XML stream, wrong format: com.rapidminer.operator.learner.bayes.DistributionModel.
Stack trace:
com.rapidminer.operator.io.ModelLoader.read(ModelLoader.java:91)
com.rapidminer.operator.io.ModelLoader.read(ModelLoader.java:53)
com.rapidminer.operator.io.AbstractReader.apply(AbstractReader.java:52)
com.rapidminer.operator.Operator.apply(Operator.java:671)
com.rapidminer.operator.OperatorChain.apply(OperatorChain.java:424)
com.rapidminer.operator.Operator.apply(Operator.java:671)
com.rapidminer.Process.run(Process.java:735)
com.rapidminer.Process.run(Process.java:704)
com.rapidminer.Process.run(Process.java:694)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:59)
Cause
Exception: java.io.StreamCorruptedException
Message: invalid stream header: 1F8B0800
Stack trace:
java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
com.rapidminer.operator.io.ModelLoader.read(ModelLoader.java:70)
com.rapidminer.operator.io.ModelLoader.read(ModelLoader.java:53)
com.rapidminer.operator.io.AbstractReader.apply(AbstractReader.java:52)
com.rapidminer.operator.Operator.apply(Operator.java:671)
com.rapidminer.operator.OperatorChain.apply(OperatorChain.java:424)
com.rapidminer.operator.Operator.apply(Operator.java:671)
com.rapidminer.Process.run(Process.java:735)
com.rapidminer.Process.run(Process.java:704)
com.rapidminer.Process.run(Process.java:694)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:59)
Thanks
Peter
0
Contributor II
Answers
Peter
did you generate the model with 4.4 or 4.5? These may be incompatible. Does it work if you save from 4.5 and load into 4.5?
Cheers,
Simon
Peter