Skip to main content

available_tasks

available_tasks()

What this package can be asked to do at all.

Four rows, and the weakest of this family as a list - it earns its place as the entry point, which is the question somebody asks before they have read anything.

These rows are written out where everything else in this module is derived, which contradicts this file’s own first paragraph and is deliberate: a row carries a chooses tuple and a summary that no model declares. So it is a second copy of one answer, and tests/spec/test_task_coverage.py holds it to AnySpec’s members rather than a comment claiming the two agree.

Returns

Name Type Description
list[dict[str, Any]] One row per task: the value you write under task, the components it lets you
list[dict[str, Any]] choose, and what it is for.

[row[“name”] for row in available_tasks()] [‘classification’, ‘instance_segmentation’, ‘object_detection’, ‘semantic_segmentation’] next(r for r in available_tasks() if r[“name”] == “instance_segmentation”)[“chooses”] (‘models’, ‘separation’, ‘decode’, ‘loss’, ‘metrics’, ‘optimizer’, ‘callbacks’, ‘augmentation’)