1

Can R or Python models be easily imported into a Data Model?

Hello,

We have existing R and Python models developed in RStudio.  Is there a way for us to import these models into a Pyramid Data Model?

Thanks,
Rob

2 replies

null
    • Senior Director of Product
    • Ian_Macdonald
    • 9 mths ago
    • Official response
    • Reported - view

    Hi Robert,

    Yes, but it kind of depends on what they do and how they're written.

    You can either copy and paste the script into an R or Python block in the Data Flow, or do the same thing into a Script using Formulate and save into the repository, then pull it into an R or Python block from there.

    A few things to note:

    1. If the Python / R block is inline in a Data Flow, the input / output is passed as a Data Frame.
    2. If the block is a Source Block, the output is passed to the Data Flow as a Data Frame
    3. Choose the ML environment to run the script in - you can create as many environments as you wish and define the package level in each to match the script requirements through the Admin console. You can also import your Python or R environment as a new ML machine.
    4. It is Data processing only, we don't support any graphical output from scripts, just passing data.
    5. You can set the Python / R Block as an endpoint to save the generated model and use the trained Model in other Data Flows.

    Hope that helps.

    Ian

    • Robert_Clark
    • 9 mths ago
    • Reported - view

    Thank you Ian Macdonald that answered my question.

Content aside

  • Status Answered
  • 1 Likes
  • 9 mths agoLast active
  • 2Replies
  • 31Views
  • 2 Following