Skip to content

Commit 5449a5b

Browse files
authored
Merge pull request #47 from Wainberg/patch-1
Fix typo in L2 regularization
2 parents e685b3b + 00d951c commit 5449a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RcppFunctions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Eigen::MatrixXd Rcpp_predict_dense(Eigen::MatrixXd& A_, const Rcpp::S4& mask, Ei
4343
m.maskMatrix(mask_);
4444
m.threads = threads;
4545
m.L1[1] = L1;
46-
m.L2[1] = L1;
46+
m.L2[1] = L2;
4747
m.upper_bound = upper_bound;
4848
m.predictH();
4949
return m.matrixH();
@@ -501,4 +501,4 @@ Rcpp::S4 c_rsparsematrix(const uint32_t nrow, const uint32_t ncol, const uint32_
501501
result.slot("i") = i_;
502502
result.slot("p") = p;
503503
return result;
504-
}
504+
}

0 commit comments

Comments
 (0)