dacapo.experiments.tasks.dummy_task_config

Classes

DummyTaskConfig

A class for creating a dummy task configuration object.

Module Contents

class dacapo.experiments.tasks.dummy_task_config.DummyTaskConfig

A class for creating a dummy task configuration object.

This class extends the TaskConfig class and initializes dummy task configuration with default attributes. It is mainly used for testing aspects of the application without the need of creating real task configurations.

task_type

The type of task. Here, set to DummyTask.

Type:

cls

embedding_dims

A dummy attribute represented as an integer.

Type:

int

detection_threshold

Another dummy attribute represented as a float.

Type:

float

verify(self) Tuple[bool, str]

This method verifies the DummyTaskConfig object.

Note

This is a subclass of TaskConfig.

task_type
embedding_dims: int
detection_threshold: float
verify() Tuple[bool, str]

A method to verify the dummy task configuration.

Whenever called, this method always returns False and a statement showing that the DummyTaskConfig object is never valid.

Returns:

A tuple containing a boolean status and a string message.

Return type:

tuple

Raises:

NotImplementedError – This method is not implemented.

Examples

>>> valid, reason = task_config.verify()