#NEWLINE# def _create_supervised_test_node( self ) : #NEWLINE# #INDENT# ' Create the test node of the network.\n        :return: self\n        ' #NEWLINE# with tf . name_scope ( 'test' ) : #NEWLINE# #INDENT# self . model_predictions = tf . argmax ( self . softmax_out , 1 ) #NEWLINE# correct_prediction = tf . equal ( self . model_predictions , tf . argmax ( self . input_labels , 1 ) ) #NEWLINE# self . accuracy = tf . reduce_mean ( tf . cast ( correct_prediction , 'float' ) ) #NEWLINE# _ = tf . scalar_summary ( 'accuracy' , self . accuracy )