ramp_engine.base.BaseWorker

class ramp_engine.base.BaseWorker(config, submission)

Metaclass used to build a RAMP worker. Do not use this class directly.

Parameters
configdict

Configuration of the worker.

submissionstr

Name of the RAMP submission to be handle by the worker.

Attributes
statusstr

The status of the worker. It should be one of the following state:

  • ‘initialized’: the worker has been instantiated.

  • ‘setup’: the worker has been set up.

  • ‘error’: setup failed / training couldn’t be started.

  • ‘running’: the worker is training the submission.

  • ‘finished’: the worker finished to train the submission.

  • ‘collected’: the results of the training have been collected.

  • ‘retry’: the worker has been interrupted (and will be retried).

  • ‘killed’

__init__(config, submission)

Initialize self. See help(type(self)) for accurate signature.