tall-forest-7561
10/24/2024, 3:24 PMInferenceFlow
class). Please see the flow I'm trying to code. I wrote one with some dummy steps and redundant code but it seems inefficient. I can combine them all in one step
but that won't isolate errors or benefit from parallelism. I am a beginner in metaflow. Please guide what's the best approach here.square-wire-39606
10/24/2024, 3:31 PMsquare-wire-39606
10/24/2024, 3:31 PMtall-forest-7561
10/24/2024, 3:32 PMmerge and featurengineer
execute the same code
Model definition is different but the training code is same.happy-wolf-7852
10/24/2024, 3:32 PMtall-forest-7561
10/24/2024, 3:37 PM@step
def parquet_preprocess(self):
self.next(self.forward_pq, self.autoencode)
@step
def forward_pq(self):
self.next(self.join1)
@step
def autoencode(self):
...
self.next(self.join2)
@step
def csv_preprocess(self):
self.next(self.forward_csv1, self.forward_csv2)
@step
def forward_csv1(self):
self.next(self.join1)
@step
def forward_csv2(self):
self.next(self.join2)
See I'm creating lot of empty steps just to parallelize ittall-forest-7561
10/24/2024, 3:38 PMhappy-wolf-7852
10/24/2024, 3:40 PMtall-forest-7561
10/24/2024, 3:42 PMself.next
statements in the block which joins foreach
output?tall-forest-7561
10/24/2024, 3:52 PMhappy-wolf-7852
10/24/2024, 4:02 PM