Skip to content

Click in-app to access the full platform documentation for your version of DataRobot.

What-If App (Deprecated)

The What-If app is a decision-support tool that works with any DataRobot model. It allows you to create and compare side-by-side multiple prediction simulations to identify the option that provides the best outcome. You can make a prediction, then change one or more inputs to create a new simulation, and see how those changes affect the target feature. You can also compare every simulation (with associated Prediction Explanations) side-by-side.

If you have not yet deployed the What-If App, reference the app deployment walkthrough before proceeding.

Prediction simulation inputs

To begin using the What-If app, open it, navigate to the Simulate tab, and click the Manage Variables link. Select the variables (features) to input into the prediction simulation. By default, the app selects the top 10 variables measured by feature importance.

Use the controls to:

  • select all variables (1).
  • clear all variables (2).
  • select a variable on either side (3) and use the arrows (4) to move the selected variables to the other side.
  • select Reset to default (5) to return to the default settings (the top 10 most important variables selected).

When you are satisfied with your selected variables, click Done.

Simulated predictions

After configuring your variables, return to the Simulate tab to begin making simulated predictions. Provide values for each variable selected on the Manage Variables page.

When you have entered values for all of the features, click Update Prediction. This triggers a prediction request to a DataRobot prediction server and returns a predicted value for your target feature.

If Prediction Explanations are available for your prediction request, they will appear on the right. Read more about prediction explanations. When the prediction is made, the Add to comparison link becomes active at the bottom of the page. Select it to add this scenario with its predicted value to the Compare tab.

You can continue to make predictions and add them to the Compare tab by updating the variable inputs with new values and repeating this process.

Compare scenarios

After making several predictions, click the Compare tab to view the scenarios side-by-side.

In the example above, there are four housing sale price prediction scenarios in the comparison view. The primary scenario (made first) is on the far left and three other scenarios have changed the values for the neighborhood and kitchen quality variables.

In Scenario 2, a home in the Edwards neighborhood with Fair kitchen quality has a lower sale price than Scenario 3: a home in the Gilbert neighborhood with the same kitchen quality. Additionally, the homes in Scenarios 1 and 4 are identical in variables except for neighborhood, yet Scenario 1 (the home in the Gilbert neighborhood) has a higher sale price.

By analyzing these scenarios, you can conclude that homes in the Gilbert neighborhood drive a higher sale price than homes in the Edwards neighborhood. We can also observe that kitchen quality is a variable that drives sale price; homes with higher kitchen quality have a higher sale price than other homes in the same neighborhood. Prediction Explanations confirm this analysis, as they show two green plus signs for the kitchen quality feature in Scenarios 1 and 4.

Share the What-If app

When you have generated a series of scenarios with results and insights that you want to share, you can provide a link for other users to view the results. Select the share icon () in the top right corner.

A modal appears with a shareable URL. Select Copy link to copy the URL and share it with others. You can share the URL with anyone who has to DataRobot Applications. Read more about sharing applications.

Updated October 26, 2021
Back to top