sklearn.linear_model.sgdclassifier scikit-learn

decision_function (X) [source] ¶ Predict confidence scores for samples. The confidence score for a sample is proportional to the signed distance of that sample to the hyperplane. Parameters X array-like or sparse matrix, shape (n_samples, n_features) Samples. Returns array, shape=(n_samples,) if n_classes == 2 else (n_samples, n_classes)

Live Chat