Skip to content

Commit

Permalink
Merge pull request #38 from AutoResearch/37-bug-get_models-crashese
Browse files Browse the repository at this point in the history
Update regressor.py
  • Loading branch information
TheLemonPig authored Aug 23, 2023
2 parents 27df0d0 + 9d757a8 commit 643343a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autora/theorist/bms/regressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def get_models(self):
bms_model = BMSRegressor()
bms_model.model_ = tree
bms_model.temp_ = self.ts[idx]
bms_model.variables = list(X.columns) if hasattr(X, "columns") else ["X%d" % i for i in range(X.shape[1])]
bms_model.variables = list(self.X_.columns) if hasattr(self.X_, "columns") else ["X%d" % i for i in range(self.X_.shape[1])]
model_list.append(bms_model)
return model_list

Expand Down

0 comments on commit 643343a

Please sign in to comment.