def __transform(self, X: np.ndarray) -> np.ndarray:
    '\n        Transform given input according to the univariate polynomial transformation\n\n        Parameters\n        ----------\n        X: ndarray of shape (n_samples,)\n\n        Returns\n        -------\n        transformed: ndarray of shape (n_samples, k+1)\n            Vandermonde matrix of given samples up to degree k\n        '
    X_vander = np.vander(X, (self.deg_ + 1), increasing=True)
    return X_vander
Transform given input according to the univariate polynomial transformation

Parameters
----------
X: ndarray of shape (n_samples,)

Returns
-------
transformed: ndarray of shape (n_samples, k+1)
    Vandermonde matrix of given samples up to degree k
def __transform(self, X: np.ndarray) -> np.ndarray:
    '\n        Transform given input according to the univariate polynomial transformation\n\n        Parameters\n        ----------\n        X: ndarray of shape (n_samples,)\n\n        Returns\n        -------\n        transformed: ndarray of shape (n_samples, k+1)\n            Vandermonde matrix of given samples up to degree k\n        '
    X_vander = np.vander(X, (self.deg_ + 1), increasing=True)
    return X_vander