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
Convert datetime attribute(time) to morning, afternoon,evening,night
Hi all,
I was trying to convert time into morning afternoon,evening and night, and using Discretize by User Specification but it's not helping me out.
Can someone help me in doing the process in Generate atribute operator?
In my project it is..
Morning- 6am to 11am
Afternoon- 11am - 4pm
Evening- 4pm- 11pm
Regards,
Gohel
I was trying to convert time into morning afternoon,evening and night, and using Discretize by User Specification but it's not helping me out.
Can someone help me in doing the process in Generate atribute operator?
In my project it is..
Morning- 6am to 11am
Afternoon- 11am - 4pm
Evening- 4pm- 11pm
Regards,
Gohel
0
Answers
You can use recursive if else block in generate attributes to take care of this as your limits are consistent for "Night".
Example XML Code as follows:
Harshit
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts