The Altair Community is migrating to a new platform to provide a better experience for you. The RapidMiner Community will merge with the Altair Community at the same time. In preparation for the migration, both communities are on read-only mode from July 15th - July 24th, 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.
Options

Changing Color of +/- class labels

dragoljubdragoljub Member Posts: 241 Contributor II
edited November 2018 in Help
Hey Guys,

Is there any way to change the color map that RM uses for 2 classes. Blue and red is fine, but I want to have my negative class samples be red and my positive class samples be blue. I am not able to make this happen when plotting.  ???

-Gagi

Answers

  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    you can change this in the RapidMiner Settings. Select Tools/Preferences, go to the Gui tab and exchange Rapidminer.gui.plotter.legend.maxcolor and mincolor. This should do the trick.

    Greetings,
      Sebastian
  • Options
    dragoljubdragoljub Member Posts: 241 Contributor II
    Thanks for letting me know, however this will change all my plots and I want this to be plot specific.

    Is there any way to select a color-map for each specific plot?

    Howe does RM choose coloring for binomial features? Is there a labeling scheme I can use to ensure it would color one label red and another blue?

    Thanks,
    -Gagi
  • Options
    IngoRMIngoRM Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Community Manager, RMResearcher, Member, University Professor Posts: 1,751 RM Founder
    Hi,

    I think this operator should help you for your particular problem (in RM 5):

    "Remap Binominals"

    Just define the "negative" and the "positive" classes for the selected attribute before you create the plot should do the trick without changing the global coloring scheme.

    We had several improvements for the plotting mechanism on our agenda for RM 5, including the definition of colors for classes, but we decided to move them to RM 5.1 in order to finalize the release of 5.0.

    Cheers,
    Ingo

  • Options
    dragoljubdragoljub Member Posts: 241 Contributor II
    Thanks! This will be most helpful!  ;D
  • Options
    dragoljubdragoljub Member Posts: 241 Contributor II
    Hey Ingo,

    The remap binomial operator does not do what I expect.

    I have a nominal label feature called "slow" and "fast". The binomial remap will not detect this feature since it is of type nominal even though it is binary valued either "fast" or "slow". If I use nominal to binomial I am left with 2 features with true/false attribute values which is not exactly what I had in mind.

    Is there any way to use the Remap Binomial on nominal features that only take 2 values?

    Thanks,
    -Gagi
  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi Gagi,
    just uncheck the "transform_binominal" parameter. Then it will work.

    Greetings,
      Sebastian
  • Options
    dragoljubdragoljub Member Posts: 241 Contributor II
    I have tried this again and still no luck.

    1. My labels are Fast/Slow. The attribute has value called nominal, not binomial.

    When I convert to binomial without transform_binomial checked nothing happens. The remap operator does not remap the nominal attributes.

    -Gagi
  • Options
    haddockhaddock Member Posts: 849 Maven
    Hi Gagi,

    I see from your posts that you like things to be exact; there is no such thing as a binomial attribute in Rapidminer, in which binominal attributes contain only true or false values.
  • Options
    dragoljubdragoljub Member Posts: 241 Contributor II
    Right,

    This seems to be preventing me from selecting a color map for the plots. As of now I am relying on Matlab (ugh) to plot everything. As I have been using Matlab for years to generate clean plots I have come to rely on having control of color maps font sizes and axis labels. Hopefully RM will integrate some of these features soon.

    -Gagi ;)
  • Options
    landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi Gagi,
    it's on our road map for the later 5.x releases.

    Greetings,
      Sebastian
Sign In or Register to comment.