sort

Hyperopts.sort(key, descending=False)[source]

Sorts the hyperopts 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.

Return:
getml.pipeline.Hyperopts:

A container of sorted hyperopts.

Example:
by_type = getml.project.hyperopt.sort(lambda hyp: hyp.type)