poprox_recommender.evaluation.generate.worker#
Functions
|
|
|
Dynamically configure the resource requirements of a task or actor based on CUDA availability and parallelism configuration. |
|
|
|
Batch-recommend function, to be used as a Ray worker task. |
|
Generate recommendations for a single request, returning the pipeline state. |
|
- poprox_recommender.evaluation.generate.worker.recommend_for_profile(pipeline, request)#
Generate recommendations for a single request, returning the pipeline state.
- Parameters:
pipeline (str)
request (RecommendationRequestV1)
- Return type:
- poprox_recommender.evaluation.generate.worker.recommend_batch(pipeline, batch, writers)#
Batch-recommend function, to be used as a Ray worker task.
- Parameters:
batch (list[RecommendationRequestV1])
writers (list[RecommendationWriter])
- poprox_recommender.evaluation.generate.worker.dynamic_remote(task_or_actor)#
Dynamically configure the resource requirements of a task or actor based on CUDA availability and parallelism configuration.