You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently MLPipeline can't reach the primitives inputs or outputs dynamically, which means that it will return the current value that is hold within the json file or the dictionary.
If we can specify a function that returns the expected input or output we will be able to dynamically read those even if they are not specified within the json file (the function should be).
Expected Behavior
The MLBlock,_extract_params should consider that self.fit_args and self.produce_args could be str pointing to a function. This would return empty dictionaries for the fit_params and produce_params.
When calling MLPipeline._get_block_variables if we recieve a str when we get the attributes for variables_attr we would call the block.instance with the returned value as a function using getattr:
Problem Description
Currently
MLPipeline
can't reach theprimitives
inputs or outputs dynamically, which means that it will return the current value that is hold within thejson
file or the dictionary.If we can specify a function that returns the expected
input
oroutput
we will be able to dynamically read those even if they are not specified within thejson
file (the function should be).Expected Behavior
MLBlock,_extract_params
should consider thatself.fit_args
andself.produce_args
could bestr
pointing to a function. This would return empty dictionaries for thefit_params
andproduce_params
.MLPipeline._get_block_variables
if we recieve astr
when we get the attributes forvariables_attr
we would call theblock.instance
with the returned value as a function usinggetattr
:Example of primitive with dynamic input and output
The text was updated successfully, but these errors were encountered: