#NEWLINE# def predict_real( self , feature , * args , **kwargs ) : #NEWLINE# #INDENT# if ( self . model . decision_function_shape != 'ovr' ) : #NEWLINE# #INDENT# logger . warn ( "SVM model support only 'ovr' for predict_real." ) #NEWLINE# #UNINDENT# dvalue = self . model . decision_function ( dvalue , * args , ** kwargs ) #NEWLINE# if ( len ( np . shape ( dvalue ) ) == 1 ) : #NEWLINE# #INDENT# return np . vstack ( ( ( - dvalue ) , dvalue ) ) . T #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return dvalue