#NEWLINE# def add_training( self , id , wiki_page ) : #NEWLINE# #INDENT# guesses = self . _raw [ ( self . _raw [ 'id' ] == id ) ] #NEWLINE# correct = guesses [ ( guesses [ 'page' ] == wiki_page ) ] #NEWLINE# wrong = guesses [ ( guesses [ 'page' ] != wiki_page ) ] #NEWLINE# self . _positive = self . _positive . append ( correct ) #NEWLINE# self . _negative = self . _negative . append ( wrong ) #NEWLINE# self . _positive [ 'corr' ] = 1 #NEWLINE# self . _negative [ 'corr' ] = 0