def load_train_data(self, input_data_file='<STR_LIT>'):
self.status = '<STR_LIT>'<EOL>if (input_data_file == '<STR_LIT>'):<EOL><INDENT>input_data_file = os.path.normpath(os.path.join(os.path.join(os.getcwd(), os.path.dirname(__file__)), "<STR_LIT>"))<EOL><DEDENT>else:<EOL><INDENT>if (os.path.isfile(input_data_file) is not True):<EOL><INDENT>print("<STR_LIT>")<EOL>return self.train_X, self.train_Y<EOL><DEDENT><DEDENT>self.train_X, self.train_Y = utility.DatasetLoader.load(input_data_file)<EOL>return self.train_X, self.train_Y<EOL>
Load train data
Please check dataset/pla_binary_train.dat to understand the data format
Each feature of data x separated with spaces
And the ground truth y put in the end of line separated by a space