Copy and Paste Attribute List After Weighting

scooter7scooter7 MemberPosts:8Contributor I
edited November 2019 inHelp
Hi,

After using the "nominal to binominal" operator to create hundreds of new variables and then using the "select by weight" operator, I have hundreds of variables that I would like to save using the "select attributes" operator with the "subset" option. I copied the variables from the weights table into Excel and have been manually copying and pasting them in (my goal is to use this subset to score unseen data in the future). Is there an easier way to do this other than manually copying and pasting one variable at a time?

The issue is that, using a split validation, I have a nice model working. But, the training data has been through a lot of preprocessing. When I try to apply the exact same preprocessing steps to the new data, the prediction scoring is not working (probably due to the fact that I am selecting variables based on the chi square weights of the training data that are not the same as the weights of the scoring data). I figured that selecting the variables and using them in a new process without trying to apply the same type of weight-based preprocessing would hopefully eliminate the scoring errors that i have been experiencing. Thanks!
Tagged:

Answers

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:578Unicorn
    Could you store your weights from your training preprocessing steps and use select by weights?

    Alternatively one way I can think of is to store a single example (you can do the whole lot if you feel like it) of your training data set as a reference and then use Reorder Attributes on your Scoring Data to select only the desired attributes.
    See this hastily worked example.










    <参数键=“repository_entry”值= " / /样品s/data/Iris"/>


    This uses a Select Attibutes Operator to simulate your training set.


    <参数键=“repository_entry”值= " / /样品s/data/Iris"/>






    <操作符= " true " class = " filter_example_r激活ange" compatibility="5.3.015" expanded="true" height="76" name="Filter Example Range" width="90" x="313" y="30">
    You only need one example.

    You would store this result with the model to use in preprocessing as a reference set in Reorder Attributes.

























Sign InorRegisterto comment.