"Converting weights - read weights operator"

schillsschills MemberPosts:16Maven
edited May 2019 inHelp
HI

How do I convert my output from my model (in which I have produced optimised weights for my attributes shown in the results page) into an attributes_weights_file (*.wgt) so I am able to use the "read weights" operator to import these weights and apply them to a new set of data ??

Thanks
Schills
Tagged:

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:2531年Unicorn
    Hi,
    you can simply store and retrieve weights as every other object in RapidMiner. You don't need to use read or write weights at all.
    You can apply weights on a dataset by using "scale by Weights". See the following example process:









    <过程扩展= " true "黑ght="633" width="547">







    A cross-validation evaluating a decision tree model.
    <过程扩展= " true "黑ght="654" width="466">
















    <过程扩展= " true "黑ght="654" width="476">




    <运营商激活= " true "类= com“性能”patibility="5.0.000" expanded="true" height="76" name="Performance" width="90" x="376" y="30"/>























    Greetings,
    Sebastian
  • schillsschills MemberPosts:16Maven
    Hello

    What do you mean you can retrieve weights as "every other object"? My weights are not generated in rapid miner like in your process below, but are instead stored in an external source (microsoft excel sheet). If I am to retrieve these weights in the normal way, rapid miner thinks it is data and not weights.

    So my question is how do I use weights from an external source and apply it to data within rapid miner by using the "scale by weights operator"? I have tried but when i connect my weights data into the weights input port on the scale by weights operator, it wont work because the data (weights) are not recognised as weights....
  • awchisholmawchisholm RapidMiner Certified Expert, MemberPosts:458Unicorn
    Hello,

    You could use a rather cludgy approach with the "weight by user specification" operator. I made a quick and dirty example that takes an example set (that could be external) and makes a weights object from it.

    regards

    Andrew








    <过程扩展= " true "黑ght="550" width="955">





    <运营商激活= " true " class = " extract_macro“compatibility="5.1.002" expanded="true" height="60" name="Extract Macro" width="90" x="45" y="120">





    <运营商激活= " true " class = " extract_macro“compatibility="5.1.002" expanded="true" height="60" name="Extract Macro (2)" width="90" x="45" y="210">





    <运营商激活= " true " class = " extract_macro“compatibility="5.1.002" expanded="true" height="60" name="Extract Macro (3)" width="90" x="45" y="300">





    <运营商激活= " true " class = " extract_macro“compatibility="5.1.002" expanded="true" height="60" name="Extract Macro (4)" width="90" x="45" y="390">





    <运营商激活= " true " class = " extract_macro“compatibility="5.1.002" expanded="true" height="60" name="Extract Macro (5)" width="90" x="45" y="480">




























  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:2531年Unicorn
    Hi all,

    well actually I was very sure this is possible by the Data to Weights operator. But it seems to me: It's quite useless. Please post a feature request in our bug tracker.

    Greetings,
    Sebastian
Sign InorRegisterto comment.