RapidMiner

RapidMiner

Can't write AverageBuilder result from command line?

Can't write AverageBuilder result from command line?


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)
G Apr 28, 2009 10:24:09 AM: [Fatal] Process failed: operator cannot be executed. Check the log messages...


The rest of the file works fine; just the IOObjectWriter or ResultWriter fails.

How do you write the results of an AverageBuilder to a file from the command line?

Here's the XML of the operators:

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


I

5 REPLIES

Re: Can't write AverageBuilder result from command line?


Looks like a bug in Operator.java, getParameterAsFile():

lines 1123--

File parent = result.getParentFile();
parent.mkdirs();


What if getParentFile() returns null?

Sure enough, if I change my ResultWriter result_file to 'results/training_res_%{t}.txt', it works.

Where do I file a bug report?
RMStaff

Re: Can't write AverageBuilder result from command line?

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,
Ingo
Regular Contributor

Re: Can't write AverageBuilder result from command line?

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?

-Rasputin
Elite

Re: Can't write AverageBuilder result from command line?

Hi Rasputin,
it's already on it's way to the servers...It will be available for downloads within the next days.

Greetings,
  Sebastian
Regular Contributor

Re: Can't write AverageBuilder result from command line?

Thanks, in 4.5 it's working.

-Rasputin