MLTemplatesMixin#

class MLTemplatesMixin#

Bases: object

Methods Summary

generate_workflows(project_id, template_id)

Generate a new template.

get_template(project_id, template_id[, ...])

Returns a single Template

get_templates(project_id[, groundtruth_id])

Return all available Templates.

Methods 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).