log transform of dependent variable

mcavaret
mcavaret New Altair Community Member
edited November 5 in Community Q&A
I would like to perform a log transform of my dependent variable. I've tried to use the 'generate attributes' node, but I cannot figure out what to put in the 'function expression' portion of the node. I'm using RapidMiner 5.0 beta.
Tagged:

Answers

  • keith
    keith New Altair Community Member
    You might try wrapping your learner inside a TransformedRegression node,which will automatically apply a log transform (among several options) to the label (dependent variable) before applying the learner.

    Alternatively, you can use AttributeConstruction to create a new attribute from an existing attribute "my_attribute" as in:

    function descriptions:  my_new_attribute
    function expressions:  my_attribute * my_atttribute