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, wrapped: BaseStep):
BaseStep.__init__(self)
MetaStepMixin.__init__(self, wrapped)
def __init__(
self,
wrapped: BaseStep,
auto_ml_algorithm: AutoMLAlgorithm,
hyperparams_repository: HyperparamsRepository = None,
n_iters: int = 100,
refit=True
):
NonTransformableMixin.__init__(self)
self.refit = refit
auto_ml_algorithm = auto_ml_algorithm.set_step(wrapped)
MetaStepMixin.__init__(self, auto_ml_algorithm)
if hyperparams_repository is None:
hyperparams_repository = InMemoryHyperparamsRepository()
self.hyperparams_repository = hyperparams_repository
self.n_iters = n_iters
def __init__(self, wrapped):
MetaStepMixin.__init__(self, wrapped)
BaseStep.__init__(self)
def __init__(self, wrapped: BaseStep, copy_op=copy.deepcopy):
BaseStep.__init__(self)
MetaStepMixin.__init__(self, wrapped)
self.set_step(wrapped)
self.steps: List[BaseStep] = []
self.copy_op = copy_op
def __init__(self, wrapped: BaseStep):
NonTransformableMixin.__init__(self)
NonFittableMixin.__init__(self)
MetaStepMixin.__init__(self, wrapped=wrapped)
BaseStep.__init__(self)
def __init__(self, wrapped, epochs, fit_only=True, repeat_in_test_mode=False):
BaseStep.__init__(self)
MetaStepMixin.__init__(self, wrapped)
self.repeat_in_test_mode = repeat_in_test_mode
self.fit_only = fit_only
self.epochs = epochs
def __init__(
self,
hyperparameter_optimizer: BaseHyperparameterOptimizer,
validation_technique: BaseCrossValidationWrapper = None,
higher_score_is_better=True
):
MetaStepMixin.__init__(self, None)
BaseStep.__init__(self)
if validation_technique is None:
validation_technique = KFoldCrossValidationWrapper()
self.validation_technique = validation_technique
self.higher_score_is_better = higher_score_is_better
self.hyperparameter_optimizer = hyperparameter_optimizer