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

Add metric and ui-metadata samples #523

Merged
merged 6 commits into from
Dec 13, 2018
Merged

Conversation

hongye-sun
Copy link
Contributor

@hongye-sun hongye-sun commented Dec 12, 2018

Changes:

  • Add roc_auc_score metric in roc component
  • Add metrics and ui-metadata sample code in lightweight component notebook sample

This change is Reviewable

@hongye-sun
Copy link
Contributor Author

/test kubeflow-pipeline-e2e-test

@qimingj
Copy link
Contributor

qimingj commented Dec 12, 2018

/lgtm

@k8s-ci-robot k8s-ci-robot assigned qimingj and unassigned qimingj Dec 12, 2018
@qimingj
Copy link
Contributor

qimingj commented Dec 13, 2018

/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 6d9c74a into kubeflow:master Dec 13, 2018
@@ -114,6 +114,32 @@
"\n",
" (quotient, remainder) = divmod_helper(dividend, divisor)\n",
"\n",
" from tensorflow.python.lib.io import file_io\n",
Copy link
Contributor

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",
Copy link
Contributor

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",
Copy link
Contributor

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:
Copy link
Contributor

Choose a reason for hiding this comment

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

with open(...)

neuromage pushed a commit to neuromage/pipelines that referenced this pull request Dec 22, 2018
* 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
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
* 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
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants