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
Problem with Nominal to Date
Hello RapidMiner Team,
I have a problem with the "Nominal to Date". I don't know, if it is a bugger.
I have a small table, with attribute "time" and "value", "time" is nominal, value is numerical
id time value
1 10:00:00 3.0
2 11:00:00 4.0
3 12:00:00 5.0
4 12:30:00 6.0
5 13:00:00 7.0
6 14:00:00 8.0
In my process, I apply the "Nominal to Date" on "time" attribute with the data format: hh:mm:ss, then I plot the result with "Scatter", x-Axis: time, y-Axis: value,
then I notice that, RapidMiner consider 12:00:00 equals 00:00:00, so it is much earlier than 10:00:00 !!! Why???
Thanks very much in advance!
Here is my process:
Here is my plotted picture
I have a problem with the "Nominal to Date". I don't know, if it is a bugger.
I have a small table, with attribute "time" and "value", "time" is nominal, value is numerical
id time value
1 10:00:00 3.0
2 11:00:00 4.0
3 12:00:00 5.0
4 12:30:00 6.0
5 13:00:00 7.0
6 14:00:00 8.0
In my process, I apply the "Nominal to Date" on "time" attribute with the data format: hh:mm:ss, then I plot the result with "Scatter", x-Axis: time, y-Axis: value,
then I notice that, RapidMiner consider 12:00:00 equals 00:00:00, so it is much earlier than 10:00:00 !!! Why???
Thanks very much in advance!
Here is my process:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="6.2.000">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="6.2.000" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="retrieve" compatibility="6.2.000" expanded="true" height="60" name="Retrieve timeTest" width="90" x="179" y="345">
<parameter key="repository_entry" value="//myLearningRepository/database/timeTest"/>
</operator>
<operator activated="true" class="nominal_to_date" compatibility="6.2.000" expanded="true" height="76" name="Nominal to Date" width="90" x="313" y="345">
<parameter key="attribute_name" value="time"/>
<parameter key="date_type" value="time"/>
<parameter key="date_format" value="hh:mm:ss"/>
</operator>
<connect from_op="Retrieve timeTest" from_port="output" to_op="Nominal to Date" to_port="example set input"/>
<connect from_op="Nominal to Date" 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"/>
</process>
</operator>
</process>
Here is my plotted picture
0
Answers
Try changing the date string to "HH:mm:ss" - the upper case HH signifies 24 hour format
Andrew
thanks very much for the tip! It works!!!
by the way, I bought your book "Exploring Data with RapidMiner" from amazon and read it completely in last days, it is so good and practical orientated! Thanks very much!
Conny
Glad to help ):
Andrew
I have a similar problem. But my time data ranges from 00:00 to 200:00, which means duration expressed in hours:minutes. The type is guessed as polynomial. how can I change this duration to data I can use for calculation?
Cheers
Sven
You could use the "Generate Extract" operator like so to convert hours and minutes in the format "hours:minutes" where hours can be greater than 23. regards
Andrew