Neuraxio / Neuraxle

The world's cleanest AutoML library ✨ - Do hyperparameter tuning with the right pipeline abstractions to write clean deep learning production pipelines. Let your pipeline steps have hyperparameter spaces. Design steps in your pipeline like components. Compatible with Scikit-Learn, TensorFlow, and most other libraries, frameworks and MLOps environments.
https://www.neuraxle.org/
Apache License 2.0
608 stars 62 forks source link

Bug: NumpyRavel class cannot be inistanciated. #523

Closed guillaume-chevalier closed 2 years ago

guillaume-chevalier commented 2 years ago

Describe the bug

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
[<ipython-input-15-e9004eca1370>](https://localhost:8080/#) in <module>()
----> 1 NumpyRavel()

1 frames
[/usr/local/lib/python3.7/dist-packages/neuraxle/base.py](https://localhost:8080/#) in _ensure_basetransformer_init_called(self)
   2936         )):
   2937             raise RuntimeError(
-> 2938                 f'Please initialize Mixins in the good order. The present Mixin should '
   2939                 f'be initialized after BaseTransformer. '
   2940                 f'Got: {inspect.getmro(self.__class__)}. '

RuntimeError: Please initialize Mixins in the good order. The present Mixin should be initialized after BaseTransformer. Got: (<class '__main__.NumpyRavel'>, <class 'neuraxle.base.NonFittableMixin'>, <class 'neuraxle.base.MixinForBaseTransformer'>, <class 'neuraxle.base.BaseStep'>, <class 'neuraxle.base._FittableStep'>, <class 'neuraxle.base.BaseTransformer'>, <class 'neuraxle.base._CouldHaveContext'>, <class 'neuraxle.base._HasSavers'>, <class 'neuraxle.base._TransformerStep'>, <class 'neuraxle.base._HasHyperparamsSpace'>, <class 'neuraxle.base._HasHyperparams'>, <class 'neuraxle.base._HasSetupTeardownLifecycle'>, <class 'neuraxle.base.MixinForBaseService'>, <class 'neuraxle.base.BaseService'>, <class 'neuraxle.base._HasConfig'>, <class 'neuraxle.base._HasRecursiveMethods'>, <class 'abc.ABC'>, <class 'object'>). Visit https://www.neuraxle.org/stable/classes_and_modules_overview.html for more information.

To Reproduce Instanciate NumpyRavel()

Expected behavior no error output

Additional context Updating Clean Kata from neuraxle 0.3.4 to 0.7.0, kata 1