"saved XML output bug"

labratlabrat MemberPosts:10Contributor II
edited May 2019 inHelp
Hi all,

the XML that is exported out of Rapidminer when you save results is currently invalid because the closing object-stream tag is omitted from the bottom of the file.

Cheers

Stuart
Tagged:

Answers

  • fischerfischer MemberPosts:439Maven
    This is strange. The XML output is handled by a library, so this is hard to track down. Can you post an example?

    Cheers,
    Simon
  • labratlabrat MemberPosts:10Contributor II
    Using RM 4.5 and using the SVM/Xval example in the tutorial if you do the analysis:
























    <参数键= " root_relative_squared_error”价值e="true"/>







    if you save the performance file *.per you get this;

    < object-stream >



    root_mean_squared_error
    7.271397088254498


    relative_error
    0.4261726449515895


    correlation
    0.9990774750706919


    normalized_absolute_error
    0.04030556352101554


    absolute_error
    5.107471175794692


    squared_error
    54.826375982674925


    root_relative_squared_error
    0.04407058437419177



    first


    10965.275196534985
    3960036.9527361454
    200.0
    < predictedAttribute class = "数字alAttribute" id="6">

    prediction(label)
    4
    1
    0.0
    6




    0.0
    0.0
    0


    0.0
    0.0
    0.0
    0.0


    Infinity
    -Infinity


    0


    prediction(label)



    label
    4
    1
    0.0
    5




    0.0
    0.0
    0


    0.0
    0.0
    0.0
    0.0


    Infinity
    -Infinity


    0


    label

    72.71397088254498
    548.2637598267493
    10


    1021.4942351589382
    10965.275196534985
    200.0
    < predictedAttribute class = "数字alAttribute" reference="6"/>

    51.07471175794692
    269.8618246507336
    10


    85.2345289903179
    1012.762540663155
    200.0
    < predictedAttribute class = "数字alAttribute" reference="6"/>

    4.261726449515895
    3.142985588188072
    10


    < predictedAttribute class = "数字alAttribute" reference="6"/>

    1021.4942351589382
    27075.057565148352
    4078.1396808612185
    20.0
    0.40305563521015536
    0.018255354969483512
    10


    < predictedAttribute class = "数字alAttribute" reference="6"/>

    10965.275196534985
    6475981.792977156
    4078.1396808612185
    20.0
    0.4407058437419177
    0.021258629086615133
    10


    10965.275196534985
    3960036.9527361454
    200.0
    < predictedAttribute class = "数字alAttribute" reference="6"/>

    548.2637598267493
    34173.58564301037
    10




    200.0
    36083.680010339376
    36280.64884722099
    1.3344662294616919E7
    1.3277723556890765E7
    1.34225663075396E7
    9.990774750706919
    9.981562312225481
    10


    Evaluation



    as you see you are missing the "" tag. This is also the same for the *.RES files too


    Stuart
  • fischerfischer MemberPosts:439Maven
    Confirmed. However, that does not prevent RM from reading the file back in, does it? At least not for me.

    This is in fact a problem with xstream. It was simple to fix from our side, although I think this is a flaw in the implementation of xstream. It requires us to close the stream after every object which now prevents us to send several XML streams in a row.

    Cheers,
    Simon
  • labratlabrat MemberPosts:10Contributor II
    Correct RM can read is able to read it back, however some programs (like EXCEL) can be very fussy about having correctly constructed XML.

    Well i glad i could help

Sign InorRegisterto comment.