-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add metric and ui-metadata samples #523
Conversation
/test kubeflow-pipeline-e2e-test |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qimingj The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -114,6 +114,32 @@ | |||
"\n", | |||
" (quotient, remainder) = divmod_helper(dividend, divisor)\n", | |||
"\n", | |||
" from tensorflow.python.lib.io import file_io\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need the tensorflow dependency?
" 'numberValue': float(remainder),\n", | ||
" }]}\n", | ||
"\n", | ||
" with file_io.FileIO(output_dir + 'mlpipeline-metrics.json', 'w') as f:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use the pythonic with open(...)
?
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"#Advanced function\n", | ||
"#Demonstrates imports, helper functions and multiple outputs\n", | ||
"from typing import NamedTuple\n", | ||
"def my_divmod(dividend: float, divisor:float) -> NamedTuple('MyDivmodOutput', [('quotient', float), ('remainder', float)]):\n", | ||
"def my_divmod(dividend: float, divisor:float, output_dir:str = './') -> NamedTuple('MyDivmodOutput', [('quotient', float), ('remainder', float)]):\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change goes against the idea that outputs should be outputs.
The metrics and metadata files should have just been added to the outputs list.
@@ -79,6 +80,14 @@ def main(argv=None): | |||
with file_io.FileIO('/mlpipeline-ui-metadata.json', 'w') as f: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with open(...)
* add metric sample code in roc component * Change mlpipeline artifacts output path to tmp folder * Revert /tmp path change and add output_dir in notebook sample * Revert /tmp path kubeflow#2
* For bulk deployments support deploying a v0.6.2 version of Kubeflow in addition to v0.7 * For v0.6 kfctl apply won't succeed for an already deployed cluster so we need to check if the deployment already exists and if it does not redeploy
Changes:
This change is