#NEWLINE# def load_test_data( self , input_data_file = '' ) : #NEWLINE# #INDENT# '\n        Load test data\n        Please check dataset/pocket_pla_binary_test.dat to understand the data format\n        Each feature of data x separated with spaces\n        And the ground truth y put in the end of line separated by a space\n        ' #NEWLINE# if ( input_data_file == '' ) : #NEWLINE# #INDENT# input_data_file = os . path . normpath ( os . path . join ( os . path . join ( os . getcwd ( ) , os . path . dirname ( __file__ ) ) , 'dataset/pocket_pla_binary_test.dat' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( os . path . isfile ( input_data_file ) is not True ) : #NEWLINE# #INDENT# print ( 'Please make sure input_data_file path is correct.' ) #NEWLINE# return ( self . test_X , self . test_Y ) #NEWLINE# #UNINDENT# #UNINDENT# ( self . test_X , self . test_Y ) = utility . DatasetLoader . load ( input_data_file ) #NEWLINE# if ( ( self . feature_transform_mode == 'polynomial' ) or ( self . feature_transform_mode == 'legendre' ) ) : #NEWLINE# #INDENT# self . test_X = self . test_X [ : , 1 : ] #NEWLINE# self . test_X = utility . DatasetLoader . featureTransform ( self . test_X , self . feature_transform_mode , self . feature_transform_degree ) #NEWLINE# #UNINDENT# return ( input_data_file . test_X , self . test_Y )