Skip to content

Commit

Permalink
Merge pull request #494 from bbayukari/master
Browse files Browse the repository at this point in the history
[Bug Fix, R] abess fails with one feature
  • Loading branch information
bbayukari authored Aug 11, 2023
2 parents 523020d + 7971590 commit 5c62b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R-package/R/abess.R
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ abess.default <- function(x,
)
} else if (family %in% c("multinomial", "ordinal")) {
result[["beta"]] <- lapply(result[["beta"]], function(x) {
Matrix::Matrix(x[, -y_dim], sparse = TRUE, dimnames = list(vn, y_vn[-1]))
Matrix::Matrix(x[, -y_dim,drop=FALSE], sparse = TRUE, dimnames = list(vn, y_vn[-1]))
})
}
} else {
Expand Down

0 comments on commit 5c62b52

Please sign in to comment.