Why not `n_samples, n_features = X.shape` directly at line 571?