Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Pipeline Inputs #112

Closed
csala opened this issue Dec 5, 2019 · 0 comments · Fixed by #117
Closed

Get Pipeline Inputs #112

csala opened this issue Dec 5, 2019 · 0 comments · Fixed by #117
Assignees
Milestone

Comments

@csala
Copy link
Contributor

csala commented Dec 5, 2019

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.
@csala csala added this to the 0.4.0 milestone Dec 5, 2019
@csala csala mentioned this issue Dec 5, 2019
@csala csala modified the milestones: 0.4.0, 0.3.5 Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants