Adding features and target to a Vital AI predictive model

Part of a series to introduce the Vital AI software used to make predictions.

Go to beginning: Using the Vital AI software to make predictions

We can edit our data model to define a predictive model.

For our predictive model, we define:

  • A unique identifier for the model (URI)
  • A name for the model
  • The features (inputs) to the model, including their datatype. In this example, the inputs will be textual.
  • The target (output) of the model, including its datatype. In this example, the output is categorical (one of a list of options).
  • The machine learning algorithm to use with the predictive model. In this case, we’ll use complementary bayes.

The predictive model is defined by a combination of individuals and annotations.

6a00e5510ddf1e883301a73d989921970d-800wi

Features are specified, such as the “hasBody” property.

6a00e5510ddf1e883301a5118d68ff970c-800wi

The Target property is specified:

6a00e5510ddf1e883301a73d989a44970d-800wi

We can also specify how results of the prediction will be asserted:

6a00e5510ddf1e883301a5118d6ae4970c-800wi

We can check the definition of the model using the “showmodels” option of the vitalpredict command.

vitalpredict showmodels

6a00e5510ddf1e883301a5118d6c73970c-800wi

Now that we have our model defined, we can create our dataset.

Next: Creating a predictive model training set with Vital AI

One thought on “Adding features and target to a Vital AI predictive model

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s