|
|
@ -21,7 +21,7 @@ class AnalyticUnitWorker: |
|
|
|
|
|
|
|
|
|
|
|
async def do_train( |
|
|
|
async def do_train( |
|
|
|
self, payload: Union[list, dict], data: pd.DataFrame, cache: Optional[ModelCache] |
|
|
|
self, payload: Union[list, dict], data: pd.DataFrame, cache: Optional[ModelCache] |
|
|
|
) -> ModelCache: |
|
|
|
) -> Optional[ModelCache]: |
|
|
|
cfuture: concurrent.futures.Future = self._executor.submit( |
|
|
|
cfuture: concurrent.futures.Future = self._executor.submit( |
|
|
|
self._detector.train, data, payload, cache |
|
|
|
self._detector.train, data, payload, cache |
|
|
|
) |
|
|
|
) |
|
|
|