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
Using the model to classify new data
kyleoliva14
Member Posts: 7 Learner III
I used the Write Model operator to save my model as an .xml file.
Is it possible to use this .xml file in a java app? Like load the model then use this model to classify new data.
Tagged:
0
Answers
No, that model file is designed to be utilized only by RapidMiner. You can try exporting your model as PMML, which can be read by some other programs. But not all model types are compatible with PMML and there are several different versions/implementations so it isn't foolproof in any regard.
Why don't you just do the future scoring inside RapidMiner? Or make its scoring process accessible as a web service?
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts
I am with Brian here. It is definitely easier to use the RapidMiner platform for scoring. You should check out RapidMiner Server, its web services, and the new super-fast job agents for this:
https://rapidminer.com/products/server/
However, if you absolutely have to hack your code yourself, you can build the model application process in RapidMiner which loads this model XML file and applies it to new data. The result can then be passed back to your application.
This discussion here might be helpful for this and there is some documentation also on our docs site:
https://community.rapidminer.com/t5/Developer-Forum/RM-integration-to-Java-Text-Mining-Repository-Problem/m-p/26449
Cheers,
Ingo