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
how to use rapid miner with c # per command line
rodriguezestefa
Member Posts: 6 Contributor II
in Help
Hi, sorry, I'm new to this, I need help.
I try to use a rapid miner process saved in a local repository, I've seen this code in some question:
I try to use a rapid miner process saved in a local repository, I've seen this code in some question:
ProcessStartInfo Info = new ProcessStartInfo("C:/Program Files/Rapid-I/RapidMiner/scripts/rapidminer.bat");
Info.UseShellExecute = false;
Info.ErrorDialog = false;
Info.CreateNoWindow = true;
Info.RedirectStandardOutput = true;
Info.Arguments = "C:/Program Files/Rapid-I/RapidMiner/scripts/01_ParameterOptimization.xml";
Process p = System.Diagnostics.Process.Start(Info);
System.IO.StreamReader oReader2 = p.StandardOutput;
string sRes = oReader2.ReadToEnd();
oReader2.Close();
//All the external programs output is now in sRes
Console.WriteLine(sRes);
Console.ReadLine();
Where do I pass the repository route to execute the process?
How do I send the new excel file from which I want to obtain results based on the training set already done?,
0
Best Answer
-
David_A Administrator, Moderator, Employee-RapidMiner, RMResearcher, Member Posts: 297 RM ResearchHi,
I don't know any specifics for the C# interface but basic command line interface for RapidMiner works as follows:Either from the repository: (here for example via sh command for linux):
- sh ./programs/rapidminer-studio/scripts/rapidminer-batch.sh "//Local Repository/demo"
The "//" indicates the start of a RapidMiner repository path
Or directly pointing to an process file (xml/rmp):
- sh ./programs/rapidminer-studio/scripts/rapidminer-batch.sh -f "/home/demo.rmp"
In addition you can set macro values by adding -M as parameter, directly followed by the macro name. For example:- sh ./programs/rapidminer-studio/scripts/rapidminer-batch.sh "//Local Repository/demo" -Msample_size=100
I hope that helps you.
Best,
David8