Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.

Logarithmize attributes

chaosbringerchaosbringer Member Posts: 21 Contributor II
edited November 2018 in Help
Hi,
the subject says it all. Is there an easy way to logarithmize attributes within rapid miner?

Thank you

Answers

  • colocolo Member Posts: 236 Maven
    Hi chaosbringer,

    this should be easily possible where expressions are supported. The handling of attribute values is not the same for all operators (which sometimes is a bit irritating). The operator "Generate Attributes" uses an expression interpreter and also offers logarithmic functions. You could read the value that shall be logarithmized as macro (Extract Macro) and then create a new attribute (Generate Attributes) with a value like log(%{macro_value}).

    From the operator description:

    The following log and exponential functions are supported:
    Natural Logarithm: ln(x)
    Logarithm Base 10: log(x)
    Logarithm Dualis (Base 2): ld(x)
    Exponential (e^x): exp(x)
    Power: pow(x,y)


    Regards,
    Matthias
  • chaosbringerchaosbringer Member Posts: 21 Contributor II
    Hi Matthias,
    thank you. Worked perfectly. Actually, you don't really need to extract anything. It is sufficient to do this only with the generate attributes operator.
Sign In or Register to comment.