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
Add a get_inputs method which computes a relation of all the inputs that the pipeline requires.
The output should be a dictionary where each key is the variable name and the value is a sub dictionary specifying all the available information: type, description, default...
The process to compute the inputs should be:
Start with an empty dictionary of inputs: inputs = dict()
Iterate over the pipeline steps in reverse order and, for each step:
Get the list of produce outputs and safely pop them from the inputs dict: inputs.pop(output, None)
Get the list of produce inputs and update the inputs dict: inputs.update(produce_inputs)
If fit=True, also get the fit inputs and add them to the dict inputs.update(fit_inputs)
At the end return the inputs dict.
The method should have 1 argument:
fit: Boolean value that indicates whether to include the fit arguments or not. Defaults to True.
The text was updated successfully, but these errors were encountered:
Add a
get_inputs
method which computes a relation of all the inputs that the pipeline requires.The output should be a dictionary where each key is the variable name and the value is a sub dictionary specifying all the available information: type, description, default...
The process to compute the inputs should be:
inputs = dict()
pop
them from the inputs dict:inputs.pop(output, None)
inputs.update(produce_inputs)
fit=True
, also get thefit
inputs and add them to the dictinputs.update(fit_inputs)
The method should have 1 argument:
fit
: Boolean value that indicates whether to include the fit arguments or not. Defaults toTrue
.The text was updated successfully, but these errors were encountered: