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

increase timeouts for RAI covid healthcare classification notebook to reduce notebook test failures due to job termination #2850

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1619,9 +1619,7 @@
"- Add counterfactual analysis to RAI Insights\n",
"- Add error analysis to RAI Insights\n",
"- Combine all the RAI insights together\n",
"- Generate a scorecard in PDF format for a summary report on model performance\n",
"\n",
"**Note:** the timeout for the counterfactual generation is longer, since this is a comparatively slow process."
"- Generate a scorecard in PDF format for a summary report on model performance"
]
},
{
Expand Down Expand Up @@ -1659,6 +1657,8 @@
" ]\n",
")\n",
"\n",
"timeout = 2400\n",
"\n",
"\n",
"@dsl.pipeline(\n",
" compute=compute_name,\n",
Expand All @@ -1683,35 +1683,35 @@
" categorical_column_names=json.dumps(categorical_features),\n",
" classes=classes_in_target,\n",
" )\n",
" create_rai_job.set_limits(timeout=1200)\n",
" create_rai_job.set_limits(timeout=timeout)\n",
"\n",
" # Add an explanation\n",
" explain_job = rai_explanation_component(\n",
" comment=\"Explanation for the classification dataset\",\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" )\n",
" explain_job.set_limits(timeout=1200)\n",
" explain_job.set_limits(timeout=timeout)\n",
"\n",
" # Add causal analysis\n",
" causal_job = rai_causal_component(\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" treatment_features=treatment_features,\n",
" )\n",
" causal_job.set_limits(timeout=1200)\n",
" causal_job.set_limits(timeout=timeout)\n",
"\n",
" # Add counterfactual analysis\n",
" counterfactual_job = rai_counterfactual_component(\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" total_cfs=10,\n",
" desired_class=\"opposite\",\n",
" )\n",
" counterfactual_job.set_limits(timeout=1200)\n",
" counterfactual_job.set_limits(timeout=timeout)\n",
"\n",
" # Add error analysis\n",
" erroranalysis_job = rai_erroranalysis_component(\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" )\n",
" erroranalysis_job.set_limits(timeout=1200)\n",
" erroranalysis_job.set_limits(timeout=timeout)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
Expand All @@ -1721,7 +1721,7 @@
" insight_3=counterfactual_job.outputs.counterfactual,\n",
" insight_4=erroranalysis_job.outputs.error_analysis,\n",
" )\n",
" rai_gather_job.set_limits(timeout=1200)\n",
" rai_gather_job.set_limits(timeout=timeout)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down
Loading