<!-- Source: https://docs.squirro.com/en/latest/api/squirro_client.topic.MLTemplatesMixin.html -->
# MLTemplatesMixin

**`class MLTemplatesMixin`**

Bases: [`object`](https://docs.python.org/3.11/library/functions.html#object)

Methods SummaryMethods Documentation

**`generate_workflows(project_id, template_id, params={})`**

Generate a new template.

Parameters

- `project_id` – Id of the Squirro project.
- `template_id` – id of the template.
- `params` – dictionary that contains the parameters for the template.

**`get_template(project_id, template_id, groundtruth_id=None)`**

Returns a single Template

Parameters

- `project_id` – Id of the Squirro project.
- `template_id` – Id of the machine learning Template.
- `groundtruth_id` – Id of the Ground Truth (for enriching template with
  default values).

Returns

**`get_templates(project_id, groundtruth_id=None)`**

Return all available Templates.

Parameters

- `project_id` – Id of the Squirro project.
- `groundtruth_id` – Id of the Ground Truth (for enriching template with
  default values).
