Contents
Working with ML model templates
This section provides instructions on working with ML model templates.
You can create a template of an existing ML model to reuse its algorithm structure, set of elements, and training state at the time of the template creation. You can use a created template to add new ML models.
If the original ML model used as a template was created manually, you can add neural network elements and/or elements based on diagnostic rules to the ML model created based on such template, as well as modify or delete them.
If the original ML model used to create a template was imported to Kaspersky MLAD, the set of elements of the ML model created based on such a template cannot be changed.
Before inference, the ML model needs to train all its neural network elements. You can also start inference if the ML model has been published.
Creating a template based on an ML model
System administrators and users who have the Create model templates permission from the Manage ML models group of rights can create templates based on ML models.
You can create an ML model template based on a previously added ML model. The created templates retain the algorithm structure, set of elements, tag composition, and the training state of the source ML model.
You can create a template based on a previously added ML model if this ML model includes a neural network element for which input and output tags are defined, and/or an element based on a diagnostic rule for which rule conditions have been created.
To create a template based on an ML model:
- In the main menu, select the Models section.
- In the asset tree, next to the name of the ML model based on which you want to create a template, open the vertical menu
and select Create template.
A list of options appears on the right.
- Enter the template name in the Name field.
You can enter up to 100 characters.
By default, a template is assigned a name in the format
Template_<ML model name>_<date and time of template creation>
. - To change the names of the template tags, in the Template tag name column specify the new names for the relevant tags.
If the tags used in the ML model you are using to create the template were loaded or created in the Assets section of the administrator menu, their names are automatically assigned to the tags in the template. If a tag used in the ML model was not detected in Kaspersky MLAD, this tag will be assigned the default name in the format Tag <Model tag ID>.
You can specify a template tag name different from the tag names in the Assets section of the administrator menu. Template tags and tags in the Assets section are mapped based on the IDs of the ML model tags, which you can specify when creating an ML model from a template.
- Click the Save button.
The new ML model template appears in the Templates group of the asset tree. The Templates group is created automatically and displayed as part of the selected section of the asset tree.
Page topEditing an ML model template
You can edit the settings of a created ML model template.
System administrators and users who have the Edit model templates permission from the Manage ML models group of rights can edit ML model templates.
To edit an ML model template:
- In the main menu, select the Models section.
- In the asset tree, select the template that you want to edit.
A list of options appears on the right.
- In the upper-right corner of the window, click the Edit button.
- In the Name field, enter the new template name.
You can enter up to 100 characters.
By default, a template is assigned a name in the format
Template_<ML model name>_<date and time of template creation>
. - To change the names of the template tags, in the Template tag name column specify the new names for the relevant tags.
You can specify a template tag name different from the tag names in the Assets section of the administrator menu. Template tags and tags in the Assets section are mapped based on the IDs of the ML model tags, which you can specify when creating an ML model from a template.
- Click the Save button.
Creating an ML model based on a template
System administrators and users who have the Create models permission from the Manage ML models group of rights can create ML models based on templates.
You can create a new ML model based on available templates. When creating an ML model, you can specify the IDs of tags that should be used in the new ML model.
To create an ML model based on a template:
- In the main menu, select the Models section.
- In the asset tree, next to the name of the template that you want to use to create an ML model, open the vertical menu
and select Create model.
The Creating a model pane opens on the right.
- Enter a name for the new ML model in the Model name field.
The ML model name must not be longer than 100 characters.
- In the Model tag name column, select the tag names for each tag of the created ML model.
Template tags and tags in the Assets section in the administrator menu are mapped based on the names of the ML model tags.
- Click the Save button.
The new ML model displays in the Models group of the asset tree. The Models group is created automatically and displayed as part of the selected section of the asset tree. The Models group contains the Neural networks and Rules subgroups for storing ML model elements based on neural networks and diagnostic rules.
The state of the created ML model will match the training state of the source ML model when the template was created.
Page topRemoving an ML model template
System administrators and users who have the Delete model templates permission from the Manage ML models group of rights can remove ML model templates.
You can remove an ML model template from Kaspersky MLAD. Deleting a template does not remove ML models based on this template.
To remove an ML model template:
- In the main menu, select the Models section.
- In the asset tree, select the ML model template that you want to delete.
A list of options appears on the right.
- In the upper-right corner of the window, click the trash bin icon (
).
- Confirm deletion of the ML model template.
The selected ML model template will be removed from Kaspersky MLAD.
Page top