Skip to content

Commit

Permalink
Increase RAI tabular notebook component timeouts (#2663)
Browse files Browse the repository at this point in the history
* Update responsibleaidashboard-diabetes-decision-making.ipynb

* Update responsibleaidashboard-diabetes-regression-model-debugging.ipynb

* Update responsibleaidashboard-housing-classification-model-debugging.ipynb

* Update responsibleaidashboard-housing-decision-making.ipynb

* Update responsibleaidashboard-programmer-regression-model-debugging.ipynb

* Update responsibleaidashboard-diabetes-decision-making.ipynb

* Update responsibleaidashboard-diabetes-regression-model-debugging.ipynb

* Update responsibleaidashboard-housing-classification-model-debugging.ipynb

* Update responsibleaidashboard-housing-decision-making.ipynb

* Update responsibleaidashboard-programmer-regression-model-debugging.ipynb
  • Loading branch information
tongyu-microsoft authored Sep 21, 2023
1 parent d769228 commit 76193ee
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@
" trained_model = train_model_component(\n",
" target_column_name=target_column_name, training_data=training_data\n",
" )\n",
" trained_model.set_limits(timeout=120)\n",
" trained_model.set_limits(timeout=3600)\n",
"\n",
" _ = register_component(\n",
" model_input_path=trained_model.outputs.model_output,\n",
Expand Down Expand Up @@ -885,30 +885,30 @@
" # If you have further questions, contact [email protected]\n",
" use_model_dependency=True,\n",
" )\n",
" create_rai_job.set_limits(timeout=120)\n",
" create_rai_job.set_limits(timeout=7200)\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_feature_names,\n",
" )\n",
" causal_job.set_limits(timeout=120)\n",
" causal_job.set_limits(timeout=7200)\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=20,\n",
" desired_range=desired_range,\n",
" )\n",
" counterfactual_job.set_limits(timeout=600)\n",
" counterfactual_job.set_limits(timeout=7200)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
" constructor=create_rai_job.outputs.rai_insights_dashboard,\n",
" insight_2=causal_job.outputs.causal,\n",
" insight_3=counterfactual_job.outputs.counterfactual,\n",
" )\n",
" rai_gather_job.set_limits(timeout=120)\n",
" rai_gather_job.set_limits(timeout=7200)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@
" trained_model = train_model_component(\n",
" target_column_name=target_column_name, training_data=training_data\n",
" )\n",
" trained_model.set_limits(timeout=120)\n",
" trained_model.set_limits(timeout=3600)\n",
"\n",
" _ = register_component(\n",
" model_input_path=trained_model.outputs.model_output,\n",
Expand Down Expand Up @@ -879,28 +879,28 @@
" # If you have further questions, contact [email protected]\n",
" use_model_dependency=True,\n",
" )\n",
" create_rai_job.set_limits(timeout=120)\n",
" create_rai_job.set_limits(timeout=7200)\n",
"\n",
" # Add an explanation\n",
" explain_job = rai_explanation_component(\n",
" comment=\"Explanation for the diabetes regression dataset\",\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" )\n",
" explain_job.set_limits(timeout=120)\n",
" explain_job.set_limits(timeout=7200)\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=120)\n",
" erroranalysis_job.set_limits(timeout=7200)\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=20,\n",
" desired_range=json.dumps([50, 120]),\n",
" )\n",
" counterfactual_job.set_limits(timeout=600)\n",
" counterfactual_job.set_limits(timeout=7200)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
Expand All @@ -909,7 +909,7 @@
" insight_3=counterfactual_job.outputs.counterfactual,\n",
" insight_4=erroranalysis_job.outputs.error_analysis,\n",
" )\n",
" rai_gather_job.set_limits(timeout=120)\n",
" rai_gather_job.set_limits(timeout=7200)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@
" trained_model = train_model_component(\n",
" target_column_name=target_column_name, training_data=training_data\n",
" )\n",
" trained_model.set_limits(timeout=120)\n",
" trained_model.set_limits(timeout=3600)\n",
"\n",
" _ = register_component(\n",
" model_input_path=trained_model.outputs.model_output,\n",
Expand Down Expand Up @@ -902,35 +902,35 @@
" # If you have further questions, contact [email protected]\n",
" use_model_dependency=True,\n",
" )\n",
" create_rai_job.set_limits(timeout=120)\n",
" create_rai_job.set_limits(timeout=7200)\n",
"\n",
" # Add an explanation\n",
" explain_job = rai_explanation_component(\n",
" comment=\"Explanation for the housing dataset\",\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" )\n",
" explain_job.set_limits(timeout=120)\n",
" explain_job.set_limits(timeout=7200)\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=120)\n",
" causal_job.set_limits(timeout=7200)\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=600)\n",
" counterfactual_job.set_limits(timeout=7200)\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=120)\n",
" erroranalysis_job.set_limits(timeout=7200)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
Expand All @@ -940,7 +940,7 @@
" insight_3=counterfactual_job.outputs.counterfactual,\n",
" insight_4=erroranalysis_job.outputs.error_analysis,\n",
" )\n",
" rai_gather_job.set_limits(timeout=120)\n",
" rai_gather_job.set_limits(timeout=7200)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@
" trained_model = train_model_component(\n",
" target_column_name=target_column_name, training_data=training_data\n",
" )\n",
" trained_model.set_limits(timeout=120)\n",
" trained_model.set_limits(timeout=3600)\n",
"\n",
" _ = register_component(\n",
" model_input_path=trained_model.outputs.model_output,\n",
Expand Down Expand Up @@ -882,21 +882,21 @@
" # If you have further questions, contact [email protected]\n",
" use_model_dependency=True,\n",
" )\n",
" create_rai_job.set_limits(timeout=120)\n",
" create_rai_job.set_limits(timeout=7200)\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_feature_names,\n",
" )\n",
" causal_job.set_limits(timeout=120)\n",
" causal_job.set_limits(timeout=7200)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
" constructor=create_rai_job.outputs.rai_insights_dashboard,\n",
" insight_1=causal_job.outputs.causal,\n",
" )\n",
" rai_gather_job.set_limits(timeout=120)\n",
" rai_gather_job.set_limits(timeout=7200)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@
" trained_model = train_model_component(\n",
" target_column_name=target_column_name, training_data=training_data\n",
" )\n",
" trained_model.set_limits(timeout=120)\n",
" trained_model.set_limits(timeout=3600)\n",
"\n",
" _ = register_component(\n",
" model_input_path=trained_model.outputs.model_output,\n",
Expand Down Expand Up @@ -936,36 +936,36 @@
" # If you have further questions, contact [email protected]\n",
" use_model_dependency=True,\n",
" )\n",
" create_rai_job.set_limits(timeout=120)\n",
" create_rai_job.set_limits(timeout=7200)\n",
"\n",
" # Add an explanation\n",
" explain_job = rai_explanation_component(\n",
" comment=\"Explanation for the programmers dataset\",\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" )\n",
" explain_job.set_limits(timeout=120)\n",
" explain_job.set_limits(timeout=7200)\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=180)\n",
" causal_job.set_limits(timeout=7200)\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_range=desired_range,\n",
" )\n",
" counterfactual_job.set_limits(timeout=600)\n",
" counterfactual_job.set_limits(timeout=7200)\n",
"\n",
" # Add error analysis\n",
" erroranalysis_job = rai_erroranalysis_component(\n",
" rai_insights_dashboard=create_rai_job.outputs.rai_insights_dashboard,\n",
" filter_features=filter_columns,\n",
" )\n",
" erroranalysis_job.set_limits(timeout=120)\n",
" erroranalysis_job.set_limits(timeout=7200)\n",
"\n",
" # Combine everything\n",
" rai_gather_job = rai_gather_component(\n",
Expand All @@ -975,7 +975,7 @@
" insight_3=counterfactual_job.outputs.counterfactual,\n",
" insight_4=erroranalysis_job.outputs.error_analysis,\n",
" )\n",
" rai_gather_job.set_limits(timeout=120)\n",
" rai_gather_job.set_limits(timeout=7200)\n",
"\n",
" rai_gather_job.outputs.dashboard.mode = \"upload\"\n",
" rai_gather_job.outputs.ux_json.mode = \"upload\"\n",
Expand Down

0 comments on commit 76193ee

Please sign in to comment.