jsn / ServiceNow, simplified.
AustraliaREFERENCE GUIDE

Using Machine Learning APIs

On this page

Using Machine Learning APIs

Use ServiceNow Machine Learning (ML) APIs to train Machine Learning models and run inferences.

ML APIs enable training solutions and managing solution versions. You can get and set active versions, monitor training status, and more. The ML API also provides encoders, which enable using term frequency–inverse document frequency (TF-IDF) as a word corpus. Predictability estimates enable assessing the predictive value of table columns.

Note: Predictive Intelligence APIs run with full privileges before the Vancouver Patch 7 Hotfix 2b and Washington DC Patch 7 releases. With later releases, grant access using ACLs. For more information see Query ACLs.

ML API class overview

This section briefly describes classes for training ML solutions and running inferences with trained solutions.

Putting it together: ML API flows

You can use the following flow to configure and train solutions, encoders, and predictability estimates:

  1. Define a dataset (DatasetDefinition)

  2. Create an ML object (Solution/Encoder/PredictabilityEstimate)

  3. Add to store (Store)

  4. Train (Solution/Encoder/PredictabilityEstimate)

Note: The encoder definitions support multiple dataset definitions, but have the same training flow.

To train a solution with an encoder, create the encoder first, then include the encoder in the solution configuration.

  1. Create an encoder (Encoder)

  2. Define a dataset (DatasetDefinition)

  3. Create solution specifying encoder (Solution)

  4. Add to store (SolutionStore)

  5. Train (Solution)

ML object encoder requirements:

  • Required in similarity API solutions.

  • Required in clustering API solutions, unless using the Levenshtein distance algorithm, in which case encoders are optional.

  • Optional for classification and regression solutions.

  • Unavailable for predictability estimates.

Getting started with ML API solution training

Follow this example procedure to learn how to configure and train a solution.

Getting started with ML API solution versions

Follow these example breakdowns to learn how to manage trained solution versions.

Keep exploring.

Find another answer, or bring this documentation into your own tools.