Validation (ammm.prepro.valid)¶
This module provides decorators and classes designed for validating the structure and content of input data (features X and target y) before model fitting. These validation steps help ensure data integrity and prevent common errors during the modelling process. The classes are likely intended to be used as mixins or components within a larger preprocessing or model class structure.
MagicMock is a subclass of Mock with default implementations of most of the magic methods. You can use MagicMock without having to configure the magic methods yourself.
If you use the spec or spec_set arguments then only magic methods that exist in the spec will be created.
Attributes and the return value of a MagicMock will also be MagicMocks.