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
-
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:
- If the Python / R block is inline in a Data Flow, the input / output is passed as a Data Frame.
- If the block is a Source Block, the output is passed to the Data Flow as a Data Frame
- 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.
- It is Data processing only, we don't support any graphical output from scripts, just passing data.
- 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
-
Thank you Ian Macdonald that answered my question.