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

FIX #58 - Move MlflowPipelineHook args to PipelineML class #60

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

Galileo-Galilei
Copy link
Owner

@Galileo-Galilei Galileo-Galilei commented Sep 6, 2020

I have changed my mind: #59 is much trickier than it seems because of the need to import get_mlflow_config inside the hook which has a lot of side effects. For the sake of clarity, let's merge only the fix for #58 first. I'll open a separated PR for #59.

@Galileo-Galilei
Copy link
Owner Author

This will close #53 btw.

@Galileo-Galilei Galileo-Galilei changed the title WIP: FIX #58 and #59 - Move hook args FIX #58 - Move MlflowPipelineHook args to PipelineML class Sep 8, 2020
Copy link
Contributor

@turn1a turn1a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As pipeline_ml is user-facing I think it should have its own docstring. Apart from documentation comments, it looks good 👌

Just one more question: I didn't check but does this changeset require any updates to the documentation?

"""Store all necessary information for calling mlflow.log_model in the pipeline.

Args:
nodes (Iterable[Union[Node,): The `node`s of the training pipeline.
Copy link
Contributor

@turn1a turn1a Sep 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The type of nodes needs updating.
  • The order of arguments in docstring is wrong.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not notice that the autodocstring extension changed the order of the argument in the docstring. Idon't know why, maybe because of *args not being the last argument.

- a path to an "environment.yml" : data is loaded and used as they are
- a Dict : used as the environment
- None: a base conda environment with your current python version and your project version at training time.
Defaults to None.
Copy link
Contributor

@turn1a turn1a Sep 8, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • This should be indented with one more tab

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well spotted. I have also refactored the docstring to make shorter lines length for readibility.

@turn1a
Copy link
Contributor

turn1a commented Sep 8, 2020

This will close #53 btw.

If you put Closes #53 in PR description GitHub will link PR to an issue and it will be automatically closed upon merge: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue

@Galileo-Galilei Galileo-Galilei force-pushed the feature/remove-hooks-args branch from 45e0750 to 99e4ad6 Compare September 8, 2020 21:12
Copy link
Contributor

@turn1a turn1a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good. Merging.

@turn1a turn1a merged commit 404da28 into develop Sep 8, 2020
@Galileo-Galilei Galileo-Galilei deleted the feature/remove-hooks-args branch October 9, 2020 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing project path prevents from running a project with kedro-airflow
2 participants