seagull/lifeforms/custom.py
def validate_input_shapes(self, X: np.ndarray):
        """Check if input array is of size 2"""
        if X.ndim != 2:
            msg = (
                "Input array should have 2 dimensions: {} != 2. "
                "For a 1-d lifeform, please add a new axis".format(X.ndim)
            )
            logger.error(msg)
            raise ValueError(msg)
Check if input array is of size 2
Check if input array is of size 2
Check if input array is of size 2
def validate_input_shapes(self, X: np.ndarray):
        if X.ndim != 2:
            msg = (
                "Input array should have 2 dimensions: {} != 2. "
                "For a 1-d lifeform, please add a new axis".format(X.ndim)
            )
            logger.error(msg)
            raise ValueError(msg)
def validate_input_shapes ( self , X : np . ndarray ) : if X . ndim != 2 : msg = ( "Input array should have 2 dimensions: {} != 2. " "For a 1-d lifeform, please add a new axis" . format ( X . ndim ) ) logger . error ( msg ) raise ValueError ( msg )
Check if input array is of size 2
Check if input array is of size 2
"""Check if input array is of size 2"""
self
X
np.ndarray