umbmid/ai/logreg.py
def _reshape_features(features):
        """Reshapes features by concatenating unity feature

        Parameters
        ----------
        features : array_like
            The features that will be reshaped

        Returns
        -------
        features : array_like
            The features, with a vector of unity feature concatenated
            at the end
        """

        # Find the number of samples
        n_samples = np.size(features, axis=0)

        # Concatenate the unity feature vector
        features = np.append(features, np.ones([n_samples, ])[:, None], axis=1)

        return features
Reshapes features by concatenating unity feature

        Parameters
        ----------
        features : array_like
            The features that will be reshaped

        Returns
        -------
        features : array_like
            The features, with a vector of unity feature concatenated
            at the end
        
Reshapes features by concatenating unity feature
Reshapes features by concatenating unity feature
def _reshape_features(features):
        n_samples = np.size(features, axis=0)
        features = np.append(features, np.ones([n_samples, ])[:, None], axis=1)
        return features
def _reshape_features ( features ) : n_samples = np . size ( features , axis = 0 ) features = np . append ( features , np . ones ( [ n_samples , ] ) [ : , None ] , axis = 1 ) return features
Reshapes features by concatenating unity feature
Reshapes features by concatenating unity feature
"""Reshapes features by concatenating unity feature

        Parameters
        ----------
        features : array_like
            The features that will be reshaped

        Returns
        -------
        features : array_like
            The features, with a vector of unity feature concatenated
            at the end
        """ # Find the number of samples
 # Concatenate the unity feature vector

The features, with a vector of unity feature concatenated
at the end
The features with a vector of unity feature concatenated at the end
array_like

features
The features that will be reshaped
The features that will be reshaped