Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit bc830fb

Browse files
authored
Merge pull request #165 from scikit-learn-contrib/issue_163
Issue 163
2 parents da856e1 + 5ba84d3 commit bc830fb

File tree

11 files changed

+49450
-18951
lines changed

11 files changed

+49450
-18951
lines changed

pyearth/_basis.c

Lines changed: 7242 additions & 4978 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyearth/_forward.c

Lines changed: 11775 additions & 6860 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyearth/_forward.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ cdef class ForwardPasser:
149149
self.total_weight += self.outcome.outcomes[i].weight.total_weight
150150
self.predictors = []
151151
for i in range(n_predictors):
152-
x = self.X[:, i]
152+
x = self.X[:, i].copy()
153153
x[missing[:,i]==1] = 0.
154154
predictor = PredictorDependentData.alloc(x)
155155
self.predictors.append(predictor)

0 commit comments

Comments
 (0)