pymks/mks_localization_model.py
def _reshape_feature(self, X, size):
        """
        Helper function used to check the shape of the microstructure,
        and change to appropriate shape.

        Args:
            X: The microstructure, an `(n_samples, n_x, ...)` shaped array
                where `n_samples` is the number of samples and `n_x` is thes
                patial discretization.

        Returns:
            microstructure with shape (n_samples, size)
        """
        new_shape = (X.shape[0],) + size
        return X.reshape(new_shape)

        Helper function used to check the shape of the microstructure,
        and change to appropriate shape.

        Args:
            X: The microstructure, an `(n_samples, n_x, ...)` shaped array
                where `n_samples` is the number of samples and `n_x` is thes
                patial discretization.

        Returns:
            microstructure with shape (n_samples, size)
        
Helper function used to check the shape of the microstructure,
and change to appropriate shape.
Helper function used to check the shape of the microstructure and change to appropriate shape .
def _reshape_feature(self, X, size):
        new_shape = (X.shape[0],) + size
        return X.reshape(new_shape)
def _reshape_feature ( self , X , size ) : new_shape = ( X . shape [ 0 ] , ) + size return X . reshape ( new_shape )
Helper function used to check the shape of the microstructure,
and change to appropriate shape.
Helper function used to check the shape of the microstructure and change to appropriate shape .
"""
        Helper function used to check the shape of the microstructure,
        and change to appropriate shape.

        Args:
            X: The microstructure, an `(n_samples, n_x, ...)` shaped array
                where `n_samples` is the number of samples and `n_x` is thes
                patial discretization.

        Returns:
            microstructure with shape (n_samples, size)
        """
microstructure with shape (n_samples, size)
microstructure with shape ( n_samples size )
self
X
The microstructure, an `(n_samples, n_x, ...)` shaped array
where `n_samples` is the number of samples and `n_x` is thes
patial discretization.
The microstructure an ` ( n_samples n_x ... ) ` shaped array where ` n_samples ` is the number of samples and ` n_x ` is thes patial discretization .
size