Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Is it possible to integrate python tool just directly to R Forest tool?

Hagar-Usama
8 - Asteroid


I would like to use the output of an R model in a Python tool to generate additional metrics, such as the ROC curve or visualizing the trees of a random forest. Although I am aware that this can be done using an R tool, it is a requirement from the client to use Python.

Is it possible to achieve this using Python?

 

Thank you!

 

predictive_to_python.png

1 REPLY 1
apathetichell
20 - Arcturus

The R tool is going to output either an R object or data. I do not believe you can directly convert an R object model to Python.  If you choose data - you would then need to feed this data into your python formula - at that point - perhaps you should look at recoding what you want in Python and skipping the out of the box tools all together?

 

https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Knowledge-Base/A-Cheat-Sheet-of-Functions-... provides additional data on outputting R objects - I haven't done it in a few years so I've forgotten the specifics.

Labels
Top Solution Authors