"[SOLVED] graph Visualization of model"

venkatesh20
venkatesh20 New Altair Community Member
edited November 5 in Community Q&A
Hi,
I am developing optimization based learners as a plugin for Rapid miner. In the learning , in each iteration a cost is minimized and it should decrease for every iteration if the algorithms is correct. My need is there a way to visualize a running graph with no of iterations and cost as axes while the learner is running, if this is not possible i would like to display the same graph when the model is generated. Please advise which is the way to go.

Venki

Answers

  • MariusHelf
    MariusHelf New Altair Community Member
    Hi Venki,

    showing graphical output during model generation is against the policy of RapidMiner - if each operator could open windows the screen is easily cluttered, and what should happen if the process is executed on a headless machine?

    You can however store data for the individual iterations in your model and render them in a custom model renderer. For that, you have to register a renderer for your model in ioobjects.xml. The renderer class must implement the Renderer interface; you probably want to extend AbstractRenderer.

    Best,
    Marius
  • venkatesh20
    venkatesh20 New Altair Community Member
    Dear Marius,
    Thanks for the reply. With some digging on the code core, i found how to use simpePlotterDialog to show a plot after an operator finishes. But there is a real time need here, in most of the optimization problems the best way to check whether the algorithm is converging for given parameters is to see the iteration-cost plot. If it is possible to support real time plotting, then we can stop the learner if we find that it is not converging for the given parameters. This will solve lot of time in practical scenarios than to wait for the learner to finish and see how it performed.
  • MariusHelf
    MariusHelf New Altair Community Member
    Probably the evolutionary parameter optimization operator (class EvolutionaryParameterOptimizationOperator) still has the option to show a real-time plot, but I am not sure if it is currently working, if it ever did what you are trying to do at all, and for the reason stated above we discourage the use of visualizations during process run. Anyway, you could give it a try :)

    Best,
    Marius