#NEWLINE# def predict( self , X ) : #NEWLINE# #INDENT# 'Predict class for X.\n\n        Parameters\n        ----------\n        X : array-like of shape = [n_samples, n_features]\n            The input samples.\n\n        Returns\n        -------\n        y: array of shape = ["n_samples]\n            The predicted values.\n        ' #NEWLINE# score = self . decision_function ( X ) #NEWLINE# decisions = self . loss_ . _score_to_decision ( score ) #NEWLINE# return self . classes_ . take ( decisions , axis = 0 )