Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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