How to use the neuraxle.base.MetaStepMixin.__init__ function in neuraxle

To help you get started, we’ve selected a few neuraxle 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 Neuraxio / Neuraxle / testing / test_metastep_mixin.py View on Github external
def __init__(self, wrapped: BaseStep):
        BaseStep.__init__(self)
        MetaStepMixin.__init__(self, wrapped)
github Neuraxio / Neuraxle / neuraxle / metaopt / auto_ml.py View on Github external
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
github Neuraxio / Neuraxle / neuraxle / steps / output_handlers.py View on Github external
def __init__(self, wrapped):
        MetaStepMixin.__init__(self, wrapped)
        BaseStep.__init__(self)
github Neuraxio / Neuraxle / neuraxle / steps / loop.py View on Github external
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
github Neuraxio / Neuraxle / neuraxle / steps / flow.py View on Github external
def __init__(self, wrapped: BaseStep):
        NonTransformableMixin.__init__(self)
        NonFittableMixin.__init__(self)
        MetaStepMixin.__init__(self, wrapped=wrapped)
        BaseStep.__init__(self)
github Neuraxio / Neuraxle / neuraxle / steps / data.py View on Github external
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
github Neuraxio / Neuraxle / neuraxle / metaopt / auto_ml.py View on Github external
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