How to use the mlpm.server.aidserver function in mlpm

To help you get started, we’ve selected a few mlpm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github autoai-org / AID / components / mlserve / mlpm / solver.py View on Github external
def __init__(self, pretrained_toml=None):
        self._isReady = False
        self.bundle = None
        self._hyperparameters = {}
        self._enable_train = False
        self.server = aidserver
        if hasattr(self.__class__, 'train') and callable(
                getattr(self.__class__, 'train')):
            self._enable_train = True