Notification

The AppSheet Help Center documentation can now be viewed in Japanese - AppSheet ヘルプセンターのドキュメントが日本語で表示できるようになりました。. Learn more

Predictive models

This feature is available to AppSheet Enterprise accounts only. See AppSheet pricing.

Predictive models perform a statistical analysis of your app data in order to make predictions about future data. Some examples include:

  • Categorizing customer feedback, given examples of feedback and the categories they belong to
  • Predicting customer churn, given examples of customers and whether they churned
  • Estimating the cost of a project, given examples of previous projects and how much they cost

Predictive models work by using machine learning algorithms to generalize from your historical data. Machine learning has two phases:

  • The training phase, when your historical training data is analyzed and a new predictive model is created
  • The prediction phase, when your predictive model makes predictions on data that was not included in your training data

Google Cloud Machine Learning

Behind the scenes, AppSheet uses Google Cloud's Machine Learning Platform to create predictive models. This means that during the training phase, your data is accessed by AppSheet's code running on a Google Cloud service. During the prediction phase, your model is privately hosted on another Google Cloud service.

Create a new predictive model

To create a predictive model:

  1. Open your app in the editor.
  2. Go to Intelligence Intelligence icon.
    The Intelligence panel opens.
  3. Click + adjacent to the Predictive Models heading.
     We've made some improvements to the app editor.
    You are opted in to the new editor by default, but you can switch back to the legacy editor at any time.

    If you are using the legacy navigation

    Go to the Intelligence > Predictive Models pane and click + New Predictive Model.
  4. Rename the predictive model by updating the Name field.
  5. Configure the training model, including:

    • Training Data Table: This is the table in your app that holds your historical data that is used as input to the machine learning algorithm.
    • Column To Predict: The column in your training data that you want to make future predictions about. The column to predict must be Yes/No, Enum, Ref, Price, Decimal, or Number.
    • (Optional) Model Inputs: The columns in your training data that contain relevant information for making a prediction. If this is left blank, AppSheet will automatically infer which columns are relevant. If you need to override AppSheet's decision, then you can explicitly specify the relevant columns.
  6. Save the app by selecting one of the following options:
    • Save - Save the app.
    • Save & verify data - Save the app and verify that it is runnable based on external dependencies.

Model training

Once the editor refreshes, you will be shown a live status of your model as it is being trained. Training generally takes less than a minute, but depends on the size of your training data.

Preparing training data message in the Model Summary section

Once your model has finished training, you will be shown feedback about your model's accuracy and information about how it makes predictions. The particular information shown will depend on the type of column that your model is predicting.

Shows results of predictive model training under Model Summary

Making predictions

Once your model is trained, you can incorporate it into your app in a few different ways. The easiest way to use your model is to flip a switch in your model's configuration that will either:

  1. Add a virtual column to your table that will hold your model's output prediction, or
  2. Add an initial value to your prediction column

 

Use your model section of the Predictive Model configuration

You can also use the PREDICT("Your Model Name Here")  formula to incorporate your model's predictions in other parts of your app.

Examples

These videos show a few examples of how to use predictive models.

 

Was this helpful?

How can we improve it?

Need more help?

Try these next steps:

Search
Clear search
Close search
Main menu
9051795351107366208
true
Search Help Center
true
true
true
false
false