---
title: Training the ABS AI engine
description: For ABS to start predicting various attacks types, the model needs to be trained.
component: pingintelligence
version: 5.2
page_id: pingintelligence:installing_pingintelligence_for_apis:pingintelligence_training_abs_ai_engine
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/installing_pingintelligence_for_apis/pingintelligence_training_abs_ai_engine.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result:
---

# Training the ABS AI engine

For ABS to start predicting various attacks types, the model needs to be trained.

## About this task

The number of hours (default: 24 hours) is configurable for model training.

## Steps

1. Set the value of `training_period` parameter using [PingIntelligence Dashboard](../managing_pingintelligence_for_apis/pingintelligence_discovered_apis.html) or the [Global configuration update REST API](../pingintelligence_reference_guide/pingintelligence_global_configuration_update_rest_api.html).

   |   |                                                                                                                                                                                        |
   | - | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | For more detailed information about training the AI model, see [Managing AI engine training](../managing_pingintelligence_for_apis/pingintelligence_managing_ai_engine_training.html). |

2. Start the training.

   |   |                                                                                                                                                                                                                         |
   | - | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   |   | The training starts as soon as ABS receives the first API traffic from ASE and continues for the number of hours set in the `attack_initial_training` parameter. Training occurs automatically when a new API is added. |

3. Verify training completion.

   1. To check the ABS training status, use the ABS admin API, which returns the training duration and prediction mode. The API URL for the admin API is `https://<ip>:<port>/v4/abs/admin`.

      |   |                                                |
      | - | ---------------------------------------------- |
      |   | *ip* and *port* number are of the ABS machine. |

      ### Result:

      The following is a snippet of the output of the admin API:

      ```
      "message": "training started at Thu Dec 26 12:32:59 IST 2019",
      "training_duration": "2 hours",
      "prediction": true
      ```

If the prediction variable is `true`, ABS has completed training and is discovering attacks. A `false` value means that ABS is still in training mode.

|   |                                                                                                        |
| - | ------------------------------------------------------------------------------------------------------ |
|   | ABS only detects attacks after the training period is over. During training, no attacks are generated. |
