🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Newbie: Starting RapidMiner from Command Line

User: "IngoRM"
New Altair Community Member
Updated by Jocelyn
Original message from SourceForge forum at http://sourceforge.net/forum/forum.php?thread_id=2042410&;forum_id=390413

I need to start RapidMiner from the command line, but I can't get it to load and run the referenced XML file. For example, if I type "rapidminer 03_XValidation_Numerical.xml", IAW with the documentation, the GUI loads but the nothing else happens. When I check the xml it is empty, i.e.

<operator name="Root" class="Process" expanded="yes">
</operator>

I have "RapidMiner" installed in the "C:\Program Files\Rapid-I\RapidMiner-4.1" dir and the sample files installed in the "C:\Program Files\Rapid-I\RapidMiner-4.1\sample" dir. I'm using XP and I updated the path. Any ideas on what I need type on the command line to get the xml file to run? 

Thank you in advance...


Answer by Ingo:

Hi,

I just tested this myself on Windows XP by going into the scripts directory and typing

rapidminer ../sample/04_Validation/03_XValidation_Numerical.xml

and it works. The output looks like this:

C:\home\ingo\workspace\yale\scripts>rapidminer ../sample/04_Validation/03_XVali
ation_Numerical.xml
RAPIDMINER_HOME is not set. Trying the directory 'C:\home\ingo\workspace\yale\s
ripts\..'...
Using local jre: C:\home\ingo\workspace\yale\scripts\..\jre\bin\java.exe...
Starting RapidMiner from 'C:\home\ingo\workspace\yale\scripts\..' using classes
from 'C:\home\ingo\workspace\yale\scripts\..\build'...
RapidMiner version 4.1, Copyright (C) 2001-2007
RapidMiner comes with ABSOLUTELY NO WARRANTY; This is free software,
and you are welcome to redistribute it under certain conditions;
see license information in the file named LICENSE.
G 18.05.2008 16:52:14: rapidminer.home is 'C:\home\ingo\workspace\yale\scripts\
.'.
Last message repeated 1 times.
G May 18, 2008 4:52:14 PM: ----------------------------------------------------
G May 18, 2008 4:52:14 PM: Initialization Settings
G May 18, 2008 4:52:14 PM: ----------------------------------------------------
G May 18, 2008 4:52:14 PM: Default system encoding for IO: windows-1252
G May 18, 2008 4:52:14 PM: Load core operators...
G May 18, 2008 4:52:14 PM: Load Weka operators: true
G May 18, 2008 4:52:14 PM: Load JDBC drivers from lib directory: true
G May 18, 2008 4:52:14 PM: Load JDBC drivers from classpath: false
G May 18, 2008 4:52:14 PM: Load plugins: true
G May 18, 2008 4:52:14 PM: Load plugins from 'C:\home\ingo\workspace\yale\scrip
s\..\lib\plugins'
G May 18, 2008 4:52:14 PM: ----------------------------------------------------
G May 18, 2008 4:52:14 PM: Read rcfile 'C:\home\ingo\workspace\yale\scripts\..\
tc\rapidminerrc'.
G May 18, 2008 4:52:14 PM: Trying rcfile 'C:\home\ingo\workspace\yale\scripts\.
\etc\rapidminerrc.Windows XP'...skipped
G May 18, 2008 4:52:14 PM: Trying rcfile 'C:\Dokumente und Einstellungen\ingo\.
apidminer\4_1_0_rapidminerrc'...skipped
G May 18, 2008 4:52:14 PM: Read rcfile 'C:\Dokumente und Einstellungen\ingo\.ra
idminer\4_1_0_rapidminerrc.Windows XP'.
G May 18, 2008 4:52:14 PM: Trying rcfile 'C:\home\ingo\workspace\yale\scripts\r
pidminerrc'...skipped
G May 18, 2008 4:52:14 PM: Trying rcfile 'C:\home\ingo\workspace\yale\scripts\r
pidminerrc.Windows XP'...skipped
G May 18, 2008 4:52:14 PM: Trying rapidminer.rcfile. Property not specified...s
ipped
G May 18, 2008 4:52:14 PM: Loading operators from 'operators.xml'.
G May 18, 2008 4:52:26 PM: Loading JDBC driver information from 'etc:jdbc_prope
ties.xml'.
P May 18, 2008 4:52:26 PM: Initialising process setup
P May 18, 2008 4:52:26 PM: [NOTE] No filename given for result file, using stdo
t for logging results!
P May 18, 2008 4:52:26 PM: Checking properties...
P May 18, 2008 4:52:26 PM: Properties are ok.
P May 18, 2008 4:52:26 PM: Checking process setup...
P May 18, 2008 4:52:26 PM: Inner operators are ok.
P May 18, 2008 4:52:26 PM: Checking i/o classes...
P May 18, 2008 4:52:26 PM: i/o classes are ok. Process output: PerformanceVecto
.
P May 18, 2008 4:52:26 PM: Process ok.
P May 18, 2008 4:52:26 PM: Process initialised
P May 18, 2008 4:52:26 PM: [NOTE] Process starts
P May 18, 2008 4:52:26 PM: Process:
Root[0] (Process)
+- Input[0] (ExampleSource)
+- XVal[0] (XValidation)
+- Training[0] (LibSVMLearner)
+- ApplierChain[0] (OperatorChain)
+- Test[0] (ModelApplier)
+- Evaluation[0] (RegressionPerformance)
P May 18, 2008 4:52:36 PM: [NOTE] Process finished after 10 seconds
P May 18, 2008 4:52:36 PM: Process:
Root[1] (Process)
+- Input[1] (ExampleSource)
+- XVal[1] (XValidation)
+- Training[10] (LibSVMLearner)
+- ApplierChain[10] (OperatorChain)
+- Test[10] (ModelApplier)
+- Evaluation[10] (RegressionPerformance)
P May 18, 2008 4:52:36 PM: Produced output:
IOContainer (1 objects):

PerformanceVector [
-----root_mean_squared_error: 7.271 +/- 1.398 (mikro: 7.404 +/- 0.000)
-----absolute_error: 5.107 +/- 0.949 (mikro: 5.107 +/- 5.361)
-----relative_error: 0.426 +/- 0.364 (mikro: 0.426 +/- 2.210)
-----normalized_absolute_error: 0.040 +/- 0.014 (mikro: 0.038)
-----root_relative_squared_error: 0.044 +/- 0.014 (mikro: 0.041)
-----squared_error: 54.826 +/- 20.284 (mikro: 54.826 +/- 129.593)
-----correlation: 0.999 +/- 0.001 (mikro: 0.999)
]
(created by Evaluation)

P May 18, 2008 4:52:36 PM: [NOTE] Process finished successfully
Process finished successfully


I am hence assuming there is something wrong with your path settings...

Cheers,
Ingo


Answer by topic starter:

Thank you very much for your prompt response and taking the time to answer such a newbie question. After reading your post I was able run Rapid Miner from the command line and it now works perfectly from the scripts directory. However, after updating my path settings, if I try to run Rapid Miner on Windows XP using the "START" >> "RUN" function, I still need to explicitly write the path, i.e. 

"C:\Program Files\Rapid-I\RapidMiner-4.1\scripts\rapidminer" ..\sample\04_Validation\03_XValidation_Numerical.xml

Although I still can't rule out a problem with my path settings (e.g. "C:\Program Files\Rapid-I\RapidMiner-4.1" & "C:\Program Files\Rapid-I\RapidMiner-4.1\scripts"), but thats just a minor issue since the program works fine.

Thanks again for your great support...


Answer by Steffen:

Hello

just a suggestion:
"updating my path settings" => I guess you refer to the path in system->environment etc.
As far as I know,the windows path dont like blanks => (Program Files)

greetings

Steffen

Find more posts tagged with