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
"Size of the given column does not match previously defined number of rows" Error
Dear Community,
I'm trying to use Facebook Prophet in Python Learner operator. However, I am getting the error "Process failed: operator cannot be executed (Size of the given column does not match previously defined number of rows)" during executing the rm_apply function of the Python Learner operator.
Please tell me the meaning of this error and how to avoid it.
Best regards,
Tagged:
0
Best Answer
-
MichaelKnopf Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 31 RM Data ScientistHello,it is difficult to tell the exact cause of the error without the script and input data. But I suspect the rm_apply function returns a DataFrame not matching the size of the input data.The Python Learner is designed to be used with classification and regression models which add one ore more columns to the data set, e.g., the predicted class and its probability. Thus, the requirement that the returned columns are of the same size as the input data.Forecasting models usually output additional rows and do not add columns. As a consequence, it is not trivial to implement them using the Python Learner. In particular, the resulting model will not be compatible with time series specific operators such as the sliding window validation.However, it is in principle possible: you could return the forecast as a new column representing the prediction of the value x days from now, where now refers to the timestamp of the current row.0
Answers