RapidMiner 9.8 Beta is now available

Be one of the first to get your hands on the new features. More details and downloads here:

GET RAPIDMINER 9.8 BETA

discrete attribute that indicates the age

heheehehee Member Posts: 4 Newbie
Hello!

My query is ..
How can I get to the following:

"Generate a new discrete attribute that indicates the age of the
people as of August 8, 1934 "

The above, taking into account that:

DOB are represented in the table as:

August 18, 1990

Help pls

Answers

  • VanlalVanlal Member Posts: 11 Contributor II
    Hi

    <?xml version="1.0" encoding="UTF-8"?><process version="9.6.000">  <context>    <input/>    <output/>    <macros/>  </context>  <operator activated="true" class="process" compatibility="9.4.000" expanded="true" name="Process" origin="GENERATED_TUTORIAL">    <parameter key="logverbosity" value="init"/>    <parameter key="random_seed" value="2001"/>    <parameter key="send_mail" value="never"/>    <parameter key="notification_email" value=""/>    <parameter key="process_duration_for_mail" value="30"/>    <parameter key="encoding" value="SYSTEM"/>    <process expanded="true">      <operator activated="true" class="retrieve" compatibility="9.6.000" expanded="true" height="68" name="Retrieve Age" width="90" x="45" y="136">        <parameter key="repository_entry" value="../data/Age"/>      </operator>      <operator activated="true" class="generate_attributes" compatibility="9.6.000" expanded="true" height="82" name="Generate Attributes (2)" width="90" x="179" y="136">        <list key="function_descriptions">          <parameter key="DiscreteAgeDividedbyDay" value="date_diff(date_parse(&quot;8/8/1934&quot;),DOB)/8.64e+7/365"/>        </list>        <parameter key="keep_all" value="true"/>      </operator>      <connect from_op="Retrieve Age" from_port="output" to_op="Generate Attributes (2)" to_port="example set input"/>      <connect from_op="Generate Attributes (2)" from_port="example set output" to_port="result 1"/>      <portSpacing port="source_input 1" spacing="0"/>      <portSpacing port="sink_result 1" spacing="0"/>      <portSpacing port="sink_result 2" spacing="0"/>      <background height="232" location="//Samples/Tutorials/Data Handling/05/tutorial5" width="1502" x="26" y="47"/>    </process>  </operator></process>

    The sample data i used is 
    Name DOB
    Albert 11/8/1990
    John 11/4/1991
    Carin 12/3/1992
    Hulk 9/4/1992


Sign In or Register to comment.