Can't write AverageBuilder result from command line?
Legacy User
New Altair Community Member
I can use IOObjectWriter and ResultWriter to write the results of an AverageBuilder to a file when I run the setup from the GUI. But when I run it from the command line, it fails with:
G Apr 28, 2009 10:24:09 AM: [Fatal] NullPointerException occured in 1st application of IOObjectWriter (IOObjectWriter)The rest of the file works fine; just the IOObjectWriter or ResultWriter fails.
G Apr 28, 2009 10:24:09 AM: [Fatal] Process failed: operator cannot be executed. Check the log messages...
How do you write the results of an AverageBuilder to a file from the command line?
Here's the XML of the operators:
I
<operator name="AverageBuilder" class="AverageBuilder">
</operator>
<operator name="IOObjectWriter" class="IOObjectWriter">
<parameter key="object_file" value="training_perf_%{t}.txt"/>
<parameter key="io_object" value="AverageVector"/>
<parameter key="output_type" value="XML"/>
</operator>
Tagged:
0
Answers
-
Looks like a bug in Operator.java, getParameterAsFile():
lines 1123--
What if getParentFile() returns null?
File parent = result.getParentFile();
parent.mkdirs();
Sure enough, if I change my ResultWriter result_file to 'results/training_res_%{t}.txt', it works.
Where do I file a bug report?0 -
Hi,
this issue is fixed in the latest developer edition (as far as I know already delivered via the update server to the Enterprise Edition users) and will also be part of the next community release.
Thanks for pointing this out. Cheers,
Ingo0 -
I have the same problem with ResultsWriter and ProcessLog. Am I right to suppose that the bugfixes covers these operators, too?
Is there already a release date for the next version of RapidMiner Community Edition?
-Rasputin0 -
Hi Rasputin,
it's already on it's way to the servers...It will be available for downloads within the next days.
Greetings,
Sebastian0 -
Thanks, in 4.5 it's working.
-Rasputin0