def load_data(): dataReader = NameDataReader() dataReader.ReadData(file) dataReader.GenerateValidationSet(1000) x_train, y_train = dataReader.X, dataReader.Y x_val, y_val = dataReader.dev_x, dataReader.dev_y x_train = np.array(x_train) y_train = np.array(y_train) x_val = np.array(x_val) y_val = np.array(y_val) return x_train, y_train, x_val, y_val
def load_data(): dr = NameDataReader() dr.ReadData(file) dr.GenerateValidationSet(1000) return dr