The RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent licensing related requests from Students/Faculty members, please use the Altair academic forum 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