"ModelWriter: XML file"

nicugeorgiannicugeorgian MemberPosts:31Guru
edited May 2019 inHelp
Hi,

Within the training chain of a cross validation process, I have inserted aModelWriteroperator after a learner operator (in my case,W-M5P). The corresponding part of the code looks as follows:












As the cross validation has 10number_of_validations, the final output consists of 10 file models:国防部el_i.mod, where i = 1,10.

My question is: why I don't get also 10 XML zipped files correspoding to the 10 models? I think that the default value of the parameteroutput_typeof the operatorModelWriterisXML Zipped, right? How can I get the models in the XML (or XML zipped) format?

Thanks,
Geo
Tagged:

Answers

  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University ProfessorPosts:1,751RM Founder
    Hi,

    ahem, I am not sure if I get your point. The created models "model_i.mod" actuallyarezipped XML files. Just rename them to model_i.zip and you will be able to unzip them.

    Cheers,
    Ingo
  • nicugeorgiannicugeorgian MemberPosts:31Guru
    Hi Ingo,

    many thanks for the answer.

    I have renamed the国防部files tozipfiles, but I was not able to unzip them. Anyway, I ran again the process, this time asking theModelWriterto yieldxmlfiles as opposed tozipped xmlfiles. And yes, I was I able to open them asxmlfiles.

    然而,他们不looasI expected:)In my case, the learner,W-M5P, yields a regression tree. I was expecting to see only the regression tree in the file returned byModelWriter. There is, however, a plenty of other information in this model file:(

    Is there a way to get anxmlfile with the detail of the regression tree only?

    Thanks,
    Geo
  • IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University ProfessorPosts:1,751RM Founder
    Hi again,

    the reason why it did not work with the zip files probably is that the files are actually zipped using gzip, so renaming them to "gz" and using a unzipper which is able to unzip them should work.

    Is there a way to get an xml file with the detail of the regression tree only?
    Try a ResultWriter:



























    This will produce files with exactly the same output as the text view.

    Cheers,
    Ingo
  • nicugeorgiannicugeorgian MemberPosts:31Guru
    mierswa wrote:

    This will produce files with exactly the same output as the text view.
    Yes, it worked:)Thank you!

    I now have to find a way to parse such a file / or to convert it to an XML file.

    Cheers,
    Geo
Sign InorRegisterto comment.