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
[Execute python] meta data error
YunJeong_Kang
Member Posts: 7 Learner I
in Help
I used the Titanic data provided as sample data.
I plan to do simple preprocessing in RM and build the model using Execute python.
However, when I connect the data, this error appears.
Please help if there is a way to resolve this error.
Has anyone tried using taitanic data to build a model in Python after preprocessing in RM? If so please tell me how
I plan to do simple preprocessing in RM and build the model using Execute python.
However, when I connect the data, this error appears.
Please help if there is a way to resolve this error.
Has anyone tried using taitanic data to build a model in Python after preprocessing in RM? If so please tell me how
I captured the preprocessed data and error messages.
0
Answers
Rather than applying the data to the 'scr' input which is the script input, you should connect it to the 'inp' field. I'd recommend the tutorials for Execute Python to see this in action.
Best,
Roland
There is a mandatory function, rm_main, which needs to be included in your script. If you drag on a new Execute Python operator, you will see a simple example of the required syntax.
I think what you will require for the lower half of your scripts after doing library imports is:
def rm_main(data):
target = data['Survived']
taitanic = data.drop(columns='Survived')
...
and so on.
Hope this helps.
Best,
Roland