cool-father-88039
09/04/2024, 3:18 PMif self.test_days == 0:
self.next(self.end)
self.next(self.predict)
but metaflow complains
Invalid self.next() transition detected on line 296:
Multiple self.next() calls detected in step compute_optimal_threshold. Call self.next() only once.
Is there anything better than checking for if self.test_days == 0: in every step?
If not, was it a purposeful decision for metaflow to have this restriction?ancient-application-36103
09/04/2024, 3:19 PMancient-application-36103
09/04/2024, 3:21 PMcool-father-88039
09/04/2024, 3:28 PMthrough conditions, do you want to execute different business logic or change the structure of the flow?More the latter (though I'm not positive I understand what you mean by it). The example I shared is a common one: in an ML pipeline... • if you have a test set, compute predictions for it, evaluate the predictions, compute feature importance / explainability / fairness, and create plots. • otherwise, don't
cool-father-88039
09/04/2024, 3:29 PMcool-father-88039
09/04/2024, 5:16 PMancient-application-36103
09/05/2024, 4:57 PMsquare-wire-39606
08/27/2025, 9:29 PM