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