Module aivis_engine_v2_ad_sdk_python.setup
Classes
class AnomalyDetectionSetup-
Class for creating and handling anomaly detection setup. This is your entry point for all setup operations.
This class cannot be instantiated.
Static methods
def init_api_key(cls, api_key: str)-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Set the licensing key to authenticate API calls with.
If the licensing key is not specified through this function, the engine will use the value in the environment variable
AIVIS_ENGINE_V2_API_KEY.Attention: This function can only be called once for this runtime. Additional calls will result in an exception.
Parameters
api_key:str- API license key
def init_thread_count(cls, count: int)-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Initialize library to use parallel computation up to given thread count. If count is set to
0(default), the library will automatically use all available threads fromMAX_CPU_THREADS.Attention: This function can only be called once for this runtime. Additional calls will result in an exception.
Parameters
count:int- Maximum number of threads used for computation
def register_logger(cls, logger: EngineLogger)-
@
FlavourRequirement([Flavour.FULL, Flavour.INFERENCE])Initialize library to use given
EngineLoggerinstance for logging. If no logger is set, the library will not log anything.Parameters
logger:EngineLogger- Logger instance implementing log function