DOC Add documentation on output shape of LDA.transform
@@ -631,8 +631,10 @@ class LinearDiscriminantAnalysis(
Returns
-------
- X_new : ndarray of shape (n_samples, n_components)
- Transformed data.
+ X_new : ndarray of shape (n_samples, n_components) or \
+ (n_samples, min(rank, n_components))
+ Transformed data. In the case of the 'svd' solver, the shape
+ is (n_samples, min(rank, n_components)).
"""
if self.solver == "lsqr":
raise NotImplementedError(
