#NEWLINE# def compute_accuracy( self , test_set , test_labels ) : #NEWLINE# #INDENT# ' Compute the accuracy over the test set.\n        :param test_set: Testing data. shape(n_test_samples, n_features)\n        :param test_labels: Labels for the test data. shape(n_test_samples, n_classes)\n        :return: accuracy\n        ' #NEWLINE# with tf . Session ( ) as self . tf_session : #NEWLINE# #INDENT# self . tf_saver . restore ( self . tf_session , self . model_path ) #NEWLINE# return self . accuracy . eval ( { #NEWLINE# #INDENT# self . input_data : test_set , #NEWLINE# self . input_labels : test_labels , #NEWLINE# self . keep_prob : 1 , #NEWLINE# #UNINDENT# } )