🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Using the model to classify new data

User: "kyleoliva14"
New Altair Community Member
Updated by Jocelyn

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.

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Telcontar120"
    New Altair Community Member

    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?

    User: "IngoRM"
    New Altair Community Member

    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