actableai.models.serve package

Submodules

actableai.models.serve.inference module

class actableai.models.serve.inference.AAIModelInference(s3_bucket, s3_prefix='', cache_maxsize=5, head_cache_maxsize=20)

Bases: object

classmethod deploy(ray_autoscaling_configs, ray_options, s3_bucket, s3_prefix='', cache_maxsize=5, head_cache_maxsize=20)

TODO write documentation

async get_controls(task_id: str) Dict[str, Any]
classmethod get_deployment()

TODO write documentation

classmethod get_handle()

TODO write documentation

async get_metadata(task_id: str) Dict[str, Any]
static get_model_path(s3_prefix, task_id)

TODO write documentation

async infer(task_id: str, data: pandas.core.frame.DataFrame, options: Dict[str, Any])
async is_model_available(task_id: str) bool

TODO write documentation

class actableai.models.serve.inference.KeyValue(iterable=(), /)

Bases: tuple

actableai.models.serve.inference.dict2tuple(obj)
actableai.models.serve.inference.tuple2dict(obj)

actableai.models.serve.inference_head module

class actableai.models.serve.inference_head.AAIModelInferenceHead(cache_maxsize: int = 20)

Bases: object

classmethod get_actor(cache_maxsize: int = 20)
async get_model_ref(s3_bucket_name, path)
static load_raw_model(s3_bucket_name, path)

Module contents

class actableai.models.serve.AAIModelInference(s3_bucket, s3_prefix='', cache_maxsize=5, head_cache_maxsize=20)

Bases: object

classmethod deploy(ray_autoscaling_configs, ray_options, s3_bucket, s3_prefix='', cache_maxsize=5, head_cache_maxsize=20)

TODO write documentation

async get_controls(task_id: str) Dict[str, Any]
classmethod get_deployment()

TODO write documentation

classmethod get_handle()

TODO write documentation

async get_metadata(task_id: str) Dict[str, Any]
static get_model_path(s3_prefix, task_id)

TODO write documentation

async infer(task_id: str, data: pandas.core.frame.DataFrame, options: Dict[str, Any])
async is_model_available(task_id: str) bool

TODO write documentation

class actableai.models.serve.AAIModelInferenceHead(cache_maxsize: int = 20)

Bases: object

classmethod get_actor(cache_maxsize: int = 20)
async get_model_ref(s3_bucket_name, path)
static load_raw_model(s3_bucket_name, path)