filter

Pipelines.filter(conditional)[source]

Filters the pipelines container.

Args:
conditional (callable):

A callable that evaluates to a boolean for a given item.

Returns:
getml.project.Pipelines:

A container of filtered pipelines.

Example:
pipes_with_tags = getml.project.pipelines.filter(lambda pipe: len(pipe.tags) > 0)

accurate_pipes = getml.project.pipelines.filter(lambda pipe: all(acc > 0.9 for acc in pipe.accuracy))