blue-vegetable-65043
05/08/2023, 11:34 AMcurved-island-17262
05/08/2023, 1:13 PMMETAFLOW_DATASTORE_SYSROOT_S3 and METAFLOW_DATATOOLS_SYSROOT_S3, assuming the METAFLOW_DEFAULT_DATASTORE is set to S3.square-wire-39606
05/08/2023, 3:41 PMblue-vegetable-65043
05/08/2023, 5:18 PMdef start(self):
...
self.folds = []
for train_index, test_index in tscv.split(self.df_tweaked):
self.folds.append((self.df_tweaked[train_index],self.df_tweaked[test_index],))
self.next(self.foreach_model, foreach="models")
And the step foreach_model looks like this:
@pip(libraries={"scikit-learn": "1.2.2"})
@kubernetes(memory=12000, cpu=4)
@step
def foreach_model(self):
self.model = self.input
self.next(self.foreach_fold, foreach="folds")
And when I run it I get the following error:
Invalid self.next() transition detected on line 69:
35/foreach_model/312 (pid 62639)] [pod ] Foreach variable self.folds in step foreach_model does not exist. Check your variable.
What Am I missing ? When I was running this 100% locally I had no issue. I’m puzzled.blue-vegetable-65043
05/08/2023, 5:31 PMrun['foreach_model'].task.data
Gives :
<MetaflowData: >ancient-application-36103
05/08/2023, 11:01 PMInvalid self.next() transition detected on line 69ancient-application-36103
05/08/2023, 11:01 PMblue-vegetable-65043
05/10/2023, 4:39 PM