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

raiwidgets tests: Change post_data from tuple to list #1920

Merged
merged 1 commit into from
Jan 20, 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
@@ -29,9 +29,9 @@ def test_rai_dashboard_input_housing_causal_whatif_success(
current_outcome = [ri.test.head(1)["target"].values[0]]

dashboard_input = ResponsibleAIDashboardInput(ri)
post_data = (id, causal_whatif_test_data,
post_data = [id, causal_whatif_test_data,
treatment_feature, current_treatment_value,
current_outcome)
current_outcome]
flask_server_prediction_output = dashboard_input.causal_whatif(
post_data)

@@ -54,9 +54,9 @@ def test_rai_dashboard_input_housing_causal_whatif_failure(
current_outcome = [ri.test.head(1)["target"].values[0]]

dashboard_input = ResponsibleAIDashboardInput(ri)
post_data = (id, causal_whatif_test_data,
post_data = [id, causal_whatif_test_data,
treatment_feature, current_treatment_value,
current_outcome)
current_outcome]
flask_server_prediction_output = dashboard_input.causal_whatif(
post_data)

@@ -81,7 +81,7 @@ def test_rai_dashboard_input_housing_causal_global_effects_success(
dashboard_input = ResponsibleAIDashboardInput(ri)

id = ri.causal.get()[0].id
post_data = (id, filters, [])
post_data = [id, filters, []]

flask_server_prediction_output = \
dashboard_input.get_global_causal_effects(
@@ -100,7 +100,7 @@ def test_rai_dashboard_input_housing_causal_global_effects_failure(
dashboard_input = ResponsibleAIDashboardInput(ri)

id = "some_id_that_does_not_exist"
post_data = (id, [], [])
post_data = [id, [], []]

flask_server_prediction_output = \
dashboard_input.get_global_causal_effects(
@@ -127,7 +127,7 @@ def test_rai_dashboard_input_housing_causal_global_policy_success(
dashboard_input = ResponsibleAIDashboardInput(ri)

id = ri.causal.get()[0].id
post_data = (id, filters, [])
post_data = [id, filters, []]

flask_server_prediction_output = \
dashboard_input.get_global_causal_policy(
@@ -146,7 +146,7 @@ def test_rai_dashboard_input_housing_causal_global_policy_failure(
dashboard_input = ResponsibleAIDashboardInput(ri)

id = "some_id_that_does_not_exist"
post_data = (id, [], [])
post_data = [id, [], []]

flask_server_prediction_output = \
dashboard_input.get_global_causal_policy(