DOC document that force_all_finite is not applied for sklearn metrics
@@ -1684,7 +1684,7 @@ def pairwise_distances(X, Y=None, metric="euclidean", *, n_jobs=None,
The metric to use when calculating distance between instances in a
feature array. If metric is a string, it must be one of the options
allowed by scipy.spatial.distance.pdist for its metric parameter, or
- a metric listed in pairwise.PAIRWISE_DISTANCE_FUNCTIONS.
+ a metric listed in ``pairwise.PAIRWISE_DISTANCE_FUNCTIONS``.
If metric is "precomputed", X is assumed to be a distance matrix.
Alternatively, if metric is a callable function, it is called on each
pair of instances (rows) and the resulting value recorded. The callable
@@ -1701,7 +1701,8 @@ def pairwise_distances(X, Y=None, metric="euclidean", *, n_jobs=None,
for more details.
force_all_finite : bool or 'allow-nan', default=True
- Whether to raise an error on np.inf, np.nan, pd.NA in array. The
+ Whether to raise an error on np.inf, np.nan, pd.NA in array. Ignored
+ for a metric listed in ``pairwise.PAIRWISE_DISTANCE_FUNCTIONS``. The
possibilities are:
- True: Force all values of array to be finite.
