Model In The Loop

class cheese.models.BaseModel[source]
handle_queued_tasks()[source]

Handle every task in queue. New tasks can be added to queue if needed. Should not be called again if still running.

init_connection(connection: b_rabbit.b_rabbit.BRabbit)[source]

Initialize RabbitMQ connection

abstract process(data: cheese.data.BatchElement)cheese.data.BatchElement[source]

Process BatchElement with model. Assume the inputs to the model are in the BatchElement, then use them to create some outputs. The outputs should be added to the BatchElement before it is returned.

queue_task(task: cheese.tasks.Task)[source]

Creates a task and queue to client.

Parameters

task (Task) – The task to queue