Celery Tasks
get_model_config
Celery task implementation that returns values of the model configuration.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
self |
ModelConfigTask
|
Celery task base class. |
required |
Returns:
Type | Description |
---|---|
self.config
|
The values of the model configuration. |
Source code in src/trecover/app/api/backend/tasks.py
predict
Celery task implementation that performs keyless reading.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
self |
ArtifactsTask
|
Celery task base class. |
required |
columns |
List[str]
|
Columns to keyless read. |
required |
beam_width |
int
|
Width for beam search algorithm. Maximum value is alphabet size. |
required |
delimiter |
str
|
Delimiter for columns visualization. |
required |
Returns:
Type | Description |
---|---|
columns, chains
|
The columns and read chains. |
Raises:
Type | Description |
---|---|
AssertionError:
|
If the number of columns is grater than self.model.pe_max_len. |