The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options

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

  • Options
    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
  • Options
    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.