FIX #3503: use linalg.pinv to better deal with singular input data
Fix using ground truth in silhouette score in document clustering. Closes #3806.
Sample weight support for hinge loss
COSMIT: Use searchsorted in weighted_percentile