Custom components crashes with state functionality #545
Replies: 3 comments 1 reply
-
|
Hard to tell. At first glance, I see that your fit function doesn't have a return value but should return self. I am not sure if this is causing the error though. |
Beta Was this translation helpful? Give feedback.
-
|
This happens because conditions and observations in your regressor fit function are pd DataFrames. They can not be flattened. This should work: class PolynomialRegressor(BaseEstimator): |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Younes, that worked! Simple enough fix, but tough to determine from the error code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on part 4 of the tutorials, which is making custom AutoRA components. I am not too sure what is required for theorists/experiment runners/experimentalists to function with the wrappers. I tried what worked with the collector but that didn't work out (see below). I couldn't find any documentation on it, but likely looking in the wrong places.
I create a state:
I add an experiment runner and experimentalist:
I have the following custom theorist:
However, when I run:
I get the following error:
This occurs with non-theorist components as well.
Beta Was this translation helpful? Give feedback.
All reactions