RapidMiner 9.7 is Now Available

Lots of amazing new improvements including true version control! Learn more about what's new here.

CLICK HERE TO DOWNLOAD

Create multi models

KuyuKuyu Member Posts: 6 Contributor I
I want to create a multi-model by param, what I mean:

I have a country column, and I want to have a different model per country.
So, I want to have a model, that takes the country and applies the relevant model on it. (for the train and for the predict)  

What is the best way to do it? if there is away? 
Jasmine_

Best Answer

Answers

  • varunm1varunm1 Moderator, Member Posts: 1,203   Unicorn
    Hello Kuyu,

    If you have a country variable in your data, you can loop values operator and then inside that you can use filter examples based on the macro in loop values operator and build a model inside loop.

    This will help you create multiple models based on data.
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

    Jasmine_
  • Leonie_OWCLeonie_OWC Member, KB Contributor Posts: 13 Contributor II
    Hey there!

    Sounds like you need indexed models. They construct as many models as there are different values of the chosen index, in your case country. They are easy to use and highly efficient. You can get them with our Jackhammer Extension – unfortunately, I'm afraid, indexed models are not part of the free demo version of the extension, but there are lots of other helpful features included, so you might want to have a look anyways.

    For info on indexed models, including an example process, check out this community forum post.
    If would like more details, you can also take a look at this blog post.

    Hope this helps!

    Cheers
    Leonie
    varunm1sgenzerJasmine_
  • KuyuKuyu Member Posts: 6 Contributor I
    @varunm1 thank for your answer,

    But I'm still not fully understand, let's say I have 30 countries 
    So I will run on the loop and create 30 models, but then I want to test in on the test data?
     All I need to make inside the loop?
    Jasmine_
Sign In or Register to comment.