Model exporting into other platforms

AshrafRoushdy
AshrafRoushdy New Altair Community Member
edited November 2024 in Community Q&A
Now I trained my Model on RapidMiner, I want to export it and use it on python/R code, any guide/tutorial on this ?
Tagged:

Best Answers

  • kypexin
    kypexin New Altair Community Member
    Answer ✓
    Hi @AshrafRoushdy

    The general answer to you question would be: no, it's usually not possible to export and use the model outside RapidMiner.
    However, for some type of models this is possible with some workarounds.

    This is one answer to a similar question: https://community.rapidminer.com/discussion/comment/46804#Comment_46804. It mentions tree based models and an relatively easy way to export these; however, I never tried to do it myself with trees.

    From my own experience, it is possible export regression models because logically regression is just an equation with certain set of coefficients. I have performed that with both linear and logistic regression, in order to deploy trained models in a specific CRM environment; however this requires coding and the process is not automated, so you still cannot produce a code from RapidMiner model automatically. 
  • Telcontar120
    Telcontar120 New Altair Community Member
    Answer ✓
    There is also an operator to export certain model types using the PMML standard, however, many model types are not supported and there are different versions of PMML so that does not ensure compatibility.
    The best option is to do scoring inside RapidMiner and then simply export the results, or expose the scoring process as a web service that can be called via API.

Answers

  • kypexin
    kypexin New Altair Community Member
    Answer ✓
    Hi @AshrafRoushdy

    The general answer to you question would be: no, it's usually not possible to export and use the model outside RapidMiner.
    However, for some type of models this is possible with some workarounds.

    This is one answer to a similar question: https://community.rapidminer.com/discussion/comment/46804#Comment_46804. It mentions tree based models and an relatively easy way to export these; however, I never tried to do it myself with trees.

    From my own experience, it is possible export regression models because logically regression is just an equation with certain set of coefficients. I have performed that with both linear and logistic regression, in order to deploy trained models in a specific CRM environment; however this requires coding and the process is not automated, so you still cannot produce a code from RapidMiner model automatically. 
  • Telcontar120
    Telcontar120 New Altair Community Member
    Answer ✓
    There is also an operator to export certain model types using the PMML standard, however, many model types are not supported and there are different versions of PMML so that does not ensure compatibility.
    The best option is to do scoring inside RapidMiner and then simply export the results, or expose the scoring process as a web service that can be called via API.
  • AshrafRoushdy
    AshrafRoushdy New Altair Community Member
    Thanks Dears, so what could be the possible way to deploy my model built on RapidMiner and integrate it with live systems ?
  • kypexin
    kypexin New Altair Community Member
    Hi @AshrafRoushdy

    The solution would be to use RapidMiner Server which is primarily supposed for deploying models as web services. Start with this doc: https://rapidminer.com/products/server/