Skip to content

Commit

Permalink
copies prediction features so they do not get modified
Browse files Browse the repository at this point in the history
  • Loading branch information
ClimbsRocks committed Jan 19, 2018
1 parent 564a9c5 commit 4243e3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions concordia/Concordia_logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def predict_all(self, data):


def _predict(self, features=None, model_id=None, row_id=None, model_ids=None, shadow_models=None, proba=False):
features = features.copy()
if row_id is None and self.default_row_id_field is None:
raise(ValueError('Missing row_id. Please pass in a value for "model_id", or set a "default_row_id_field" on this Concordia instance'))

Expand Down

0 comments on commit 4243e3a

Please sign in to comment.