Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Repository Location For API
There is probably an obvious solution to this, but I am at a loss. I am trying to read data from a repository into an operator. Everything works well in the GUI. I am trying to build an application using the RapidMiner API. I have taken the generated XML and used it in the constructor for the process class. When I call the run method an exception is thrown. This is the error message:
"Cannot retrieve repository data from entry '//NewLocalRepository/newdata/TrainingData'. Reason: Entry '//NewLocalRepository/newdata/TrainingData' does not exist "
This is the operator XML
<operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="45" y="75">
<parameter key="repository_entry" value="//NewLocalRepository/newdata/TrainingData"/>
</operator>
I have tried the absolute path of the repository and i get the error message:
Cannot resolve relative repository location '/Users/Brett/Documents/RapidMiner/newdata/TrainingData'. Process is not associated with a repository.
I am using RapidMiner 5.0 under Windows Vista
"Cannot retrieve repository data from entry '//NewLocalRepository/newdata/TrainingData'. Reason: Entry '//NewLocalRepository/newdata/TrainingData' does not exist "
This is the operator XML
<operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="45" y="75">
<parameter key="repository_entry" value="//NewLocalRepository/newdata/TrainingData"/>
</operator>
I have tried the absolute path of the repository and i get the error message:
Cannot resolve relative repository location '/Users/Brett/Documents/RapidMiner/newdata/TrainingData'. Process is not associated with a repository.
I am using RapidMiner 5.0 under Windows Vista
Tagged:
0
Answers
//------------------------------------------------------
File localRe = new File("E:\\cup\\proc\\ProgramXML");
LocalRepository local = new LocalRepository("local",localRe);
RepositoryManager.getInstance(null).addRepository(local);
-Gagi ???
as always it would help to know how it fails...So any exception? Or is just a null returned? What does the log say?
Greetings,
Sebastian
http://rapid-i.com/rapidforum/index.php/topic,2385.0.html
-Gagi