Replies: 2 comments 3 replies
-
You could have an
for your real use case, you may want the |
Beta Was this translation helpful? Give feedback.
-
Thanks @alangenfeld. I realize my example formulation did not necessarily illustrate the functionality I'm trying to imitate, so maybe it's easier explain in words. I have root job that produces a list of outputs, e.g., a list of partitions of some set of data. For each partition, I would like to perform an operation, e.g., training a model. This is feasible using existing For example, suppose the root job yields three partitions. The next step would produce three models,
One option is to
etc. Is this possible? On a related note, while I have seen this discussed before, I'm guessing there are no immediate plans to allow the graph topology to depend on configs? (I have other use cases apart from this example.) |
Beta Was this translation helpful? Give feedback.
-
I have a use-case where an
op
produces a set ofDynamicOutput
s indexed, e.g., by integers; the total number of outputs is determined from theop
's config or a resource provided to theop
. I then want to apply downstream operations to programmatically determined subsets of theDynamicOutputs
.For example, I am looking for a way to imitate the following graph using dynamic outputs:
In the last loop I am applying the
add
op
to the first output, then to the first and second outputs, etc. The problem in my actual use-case is that the total number of outputs (equal toNUM_OUTPUTS = 5
in the example) is not known during graph construction (or rather it is encoded in a config that I wouldn't want to load externally from dagit just for the purpose of graph construction).Is there any creative way to achieve this?
(My actual problem involves doing expanding-window validation for an ML time-series problem on a training set of configurable length, but I think the example encompasses the main idea.)
Beta Was this translation helpful? Give feedback.
All reactions