Skip to content

Commit 2e67ee1

Browse files
authored
Merge pull request #62 from Gromwud/main
Sparsity bugfix
2 parents 8c49582 + c92f090 commit 2e67ee1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

epde/operators/common/sparsity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ def fit(self, X, y, sample_weights):
7373
rho = np.dot(X[:, j], residual) + old_coef * norm_sq
7474

7575
# Use CV-based Thresholding
76-
# threshold = cv[j] * y_sq_sum
77-
threshold = cv[j] * self.n_samples
76+
threshold = cv[j] * y_sq_sum
77+
# threshold = cv[j] * self.n_samples
7878
# threshold = cv[j] * norm_sq * abs(old_coef)
7979
new_coef = self._soft_threshold(rho, threshold) / norm_sq
8080

0 commit comments

Comments
 (0)