#NEWLINE# def load_train_data( self , input_data_file = '' ) : #NEWLINE# #INDENT# '\n        Load train data\n        Please check dataset/pla_binary_train.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# self . status = 'load_train_data' #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/pla_binary_train.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 . train_X , self . train_Y ) #NEWLINE# #UNINDENT# #UNINDENT# ( self . train_X , self . train_Y ) = utility . DatasetLoader . load ( input_data_file ) #NEWLINE# return ( self . train_X , self . train_Y )