The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Unable to output anything after Execute Python operator
AndrewChin99
Member Posts: 1 Learner I
I am trying to make a lasso regression plot with my dataset. However, it just does not show anything for my output in my Execute Python operator. My code is supposed to return the coefficient of the regression.
There is no way for me to connect my Python block with any other operators as the other inputs are all expecting ExampleSet but Python can only output as PythonNativeObject. I have tried connecting with Execute R to convert it into ExampleSet but to no avail as well. Any suggestions? This is my RMP File.
There is no way for me to connect my Python block with any other operators as the other inputs are all expecting ExampleSet but Python can only output as PythonNativeObject. I have tried connecting with Execute R to convert it into ExampleSet but to no avail as well. Any suggestions? This is my RMP File.
Tagged:
0
Answers
The extra step was that you were trying to output a numpy array. I've built a quick example where you convert it to a pandas dataframe and now you will get an output. Of course within the Execute Python you can adjust the output, this is just to get you started.
Best,
Roland