The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 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

Adding Time Attribute to Data

renslerensle Member Posts: 1 Learner III
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?

Answers

  • SHSguySHSguy Member Posts: 24 Contributor I

    Would like to know how to do this too. 

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