Skip to content

Commit

Permalink
fix bug in 'ModelConf.py' (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
woailaosang authored and ljshou committed Oct 18, 2019
1 parent b05ef8b commit 9d48764
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ModelConf.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def configurate_data_format(self):
if self.file_columns is None:
self.raise_configuration_error('file_columns')
if self.phase == 'predict':
self.file_columns, self.predict_file_columns = self.file_header, self.predict_file_header
if self.file_columns is None and self.predict_file_columns is None:
self.raise_configuration_error('predict_file_columns')
if self.file_columns and self.predict_file_columns is None:
Expand Down

0 comments on commit 9d48764

Please sign in to comment.