Adding Time Attribute to Data

renslerensle Member Posts: 1 Contributor I
edited November 2018 in Help
Hi everyone,
I have a problem with my data preprocession:

I need a Time Attribute column for the GSP operator in my data. The data looks like this

SessionNo  ItemNo  TransactType
1                  12            0
1                  13            1
1                  12            1
2                  15            0

the Session ID stands for a customer and the itemNo and TransactType for his actions.

Now i'd like to have a Time Attribute Column, so the data looks like this:

SessionNo  Time  ItemNo  TransactType
1                    1          12            0
1                    2            13            1
1                    3            12            1
2                    1            15            0

Any suggestions?


  • Options
    SHSguySHSguy Member Posts: 24 Contributor I

    Would like to know how to do this too. 

  • Options
    Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 1,761 Unicorn

    @SHSguy using a Generate Attributes operator create a new attribute called 'Date' and set it to date_now(). Unless you need to pass a real date to it, then using a Set Role to set the Date attribute to ID. I think it should flow through the process. 

Sign In or Register to comment.