#NEWLINE# def score_function( self , x , W ) : #NEWLINE# #INDENT# '\n        Score function to calculate score\n        ' #NEWLINE# score = np . sign ( np . inner ( x , self ) ) #NEWLINE# return score