dacapo.experiments.tasks.pretrained_task ======================================== .. py:module:: dacapo.experiments.tasks.pretrained_task Classes ------- .. autoapisummary:: dacapo.experiments.tasks.pretrained_task.PretrainedTask Module Contents --------------- .. py:class:: PretrainedTask(task_config) A task that uses a pretrained model. The model is loaded from a file and the weights are loaded from a file. .. attribute:: weights The path to the weights file. :type: Path .. method:: create_model(self, architecture) -> Model This method creates a model using the given architecture. .. rubric:: Notes This is a base class for all tasks that use pretrained models. .. py:attribute:: sub_task .. py:attribute:: weights .. py:attribute:: predictor .. py:attribute:: loss .. py:attribute:: post_processor .. py:attribute:: evaluator .. py:method:: create_model(architecture) Create a model using the given architecture. :param architecture: The architecture of the model. :type architecture: str :returns: The model created using the given architecture. :rtype: Model :raises NotImplementedError: This method is not implemented. .. rubric:: Examples >>> model = task.create_model(architecture)