"ModelWriter: XML file"
nicugeorgian
MemberPosts:31Guru
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:
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
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:
0
Answers
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
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 expectedIn 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
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. Try a ResultWriter: This will produce files with exactly the same output as the text view.
Cheers,
Ingo
I now have to find a way to parse such a file / or to convert it to an XML file.
Cheers,
Geo