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
Problem with printing logMessages
Legacy User
Member Posts: 0 Newbie
Hello RapidMiners,
I have a problem with the log system, i.e. I do not seem to understand it I created a plugin which is based on GeneticAlgorithm,java. in my copied GenticAlgorithm file I can put out log message with logNote(""xxx"). The class returns a "PopulationOperator" for Muatation (used within AbstractGeneticAlgorithm) which I exchanged for my own Operator, however I am not able to log any messages from MyMutationOperator (looks very much like SelectionMuatation.java). I tried:
Any sugesstions?
Thanks
I have a problem with the log system, i.e. I do not seem to understand it I created a plugin which is based on GeneticAlgorithm,java. in my copied GenticAlgorithm file I can put out log message with logNote(""xxx"). The class returns a "PopulationOperator" for Muatation (used within AbstractGeneticAlgorithm) which I exchanged for my own Operator, however I am not able to log any messages from MyMutationOperator (looks very much like SelectionMuatation.java). I tried:
but this doesn't print any Statements on RapidMiners console. I DO know that the code is excecuted because System.out.out.printlns come through.
LogService.getGlobal().setVerbosityLevel(LogService.MAXIMUM);
LogService.getGlobal().log("--------",LogService.NOTE);
Any sugesstions?
Thanks
Tagged:
0
Answers
if I understood you right, you implemented another operator? Then you will use it within an process. If you click on the the root of the process there is a parameter "logverbosity", did you changed the value apropriate to your verbosity used within your operator?
Greetings,
Sebastian
thanks for answering. Yes I think I did implement a new operator, however my understanding about RapidMiner still leaves something to be desired. A few days ago I started writing a plugin without having any knowledge about RapidMiner whatsoever
To understand the situation perhaps you might take a look at the provided example 05_Features/11_Evolutionary Feature_Selection
There is an Element "GeneticAlgorithm" (a FeatureOperator)from within that I can print Log Messages ("Notes"), now GeneticAlgorithm does something like new SelectionCrossover(crossoverType, pCrossover, getRandom(), minNumber, maxNumber, exactNumber); with "SelectionMuation" being an "Individual Operator". This Operator cannot be seen in RapidMiners Operator Tree, since I assume it is somehow "internal" to GeneticAlgortihm. From within Selection Mutation I found no way of printing messages to the log.
I tried, as you suggested, playing with "logverbostiy" of the "Root-Process" element, but this didn't help.
Any suggestions or pointers to relevant documentation?
Ingo