-
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
Improve TFX Taxi Sample and Components. #512
Conversation
if args.target_lambda: | ||
df['target'] = df.apply(eval(args.target_lambda), axis=1) | ||
|
||
# Convert "True" to "True_" and "False" to "False_" for frontend to work. |
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 looks very hacky. Could you add a bug ID here to explain why it's needed?
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.
We are still investigating. #446. Will add that to comments
components/local/roc/src/roc.py
Outdated
parser.add_argument('--target_lambda', type=str, | ||
help='a lambda function as a string to determine positive or negative.' + | ||
'For example, "lambda x: x[\'a\'] and x[\'b\']". If missing, ' + | ||
'trueclass must be set.') |
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.
and input must have a target column.
'--output', '%s/{{workflow.name}}/roc' % output, | ||
'--predictions', predictions, | ||
'--target_lambda', """lambda x: 1 if (x['target'] > x['fare'] * 0.2) else 0""", | ||
'--trueclass', 'true', |
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.
Is it still needed?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
…and E2E clusters (kubeflow#512) * cleanup_ci needs to use different expiration times for auto deployed and E2E clusters * The auto deployed clusters are now using unique names rather than being recycled and we rely on cleanup_ci.py to GC old auto-deployments (kubeflow#444) * To support this we need to use variable expiration times. * Deployments created by tests should expire as soon as the test is done (so 1-2 hours) * But auto-deployed clusters need to live longer * There are only refreshed periodically by a cron job (~8 hours) we don't want to delete the cluster before a new one is deployed because we need a cluster for the example tests * We want to leave the clusters up as long as we can to facilitate debugging by people working on example tests. Related to kubeflow#444 * Address reviewer comments.
* Fix typo in resources * Allow number of workers to be specified for Tornando * remove comment
…p CRs for the users (kubeflow#512) * add auto apply custom task CRs before pipelineRun creation * fix lint * store loop resource in ordered dict * Update kfp-admin-guide.md * sorted pipeline params to avoid randomness * sorted pipeline params to avoid randomness * regenerate tests * convert template string from yaml to json * regenerate tests * clean up unnecessary helper function * resolve merge conflicts * resolve merge conflicts * remove unnecessary go mod package * only opt-in to embed the recursion loop annotations * only opt-in to embed the recursion loop annotations * enable opt-in only via package variable * add example for how to inline recursive loops * resolve conflicts * regenerate tests * make auto generate and apply recursive pipelineloop in annotations as default * move parameter sorting to the end * add parameter sorting for recursion loops * sort recursive task parameters * add more details on how to opt-out auto apply custom resource
This change is