sort¶
- Pipelines.sort(key, descending=False)[source]¶
Sorts the pipelines container.
- Args:
- key (callable, optional):
A callable that evaluates to a sort key for a given item.
- descending (bool, optional):
Whether to sort in descending order.
- Returns:
getml.project.Pipelines
:A container of sorted pipelines.
- Example:
by_auc = getml.project.pipelines.sort(key=lambda pipe: pipe.auc) by_fl = getml.project.pipelines.sort(key=lambda pipe: pipe.feature_learners[0].type)