Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-package] abess fails with one feature #493

Closed
sebffischer opened this issue Mar 1, 2023 · 2 comments
Closed

[R-package] abess fails with one feature #493

sebffischer opened this issue Mar 1, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@sebffischer
Copy link

Describe the bug

abess::abess() from R package fails when there is only one feature.

Code for Reproduction

library(abess)
library(data.table)

x = data.table(x = sample(100, size = 100))
y = factor(sample(c("a", "b", "c"), size = 100, replace = TRUE))

abess(x = x, y = y, family = "multinomial")
#> Error in Matrix::Matrix(x[, -y_dim], sparse = TRUE, dimnames = list(vn, : length of 'dimnames' [1] not equal to array extent

Created on 2023-03-01 with reprex v2.0.2

Version: ‘0.4.7’

This did not happen in previous releases (you broke the CI of mlr3extralearners)

sebffischer added a commit to mlr-org/mlr3extralearners that referenced this issue Mar 1, 2023
This was not a issue previously and might have been introduced
in abess 0.4.7

abess-team/abess#493
@Mamba413 Mamba413 added the bug Something isn't working label Mar 2, 2023
bbayukari added a commit to bbayukari/abess that referenced this issue Mar 2, 2023
sebffischer added a commit to mlr-org/mlr3extralearners that referenced this issue Mar 6, 2023
* feat: add missing parameters

Due to changes in the package "dbarts" and "survivalmodels"
the parameter tests started to fail.
This adds the missing parameters

* fix: remove weights parameter from dbarts

The predict and the train method of the dbarts algorithm have
the "weights" parameter and it is not fully clear to me,
how they influence the training, because the predict and
train weights parameter have the same documentation (?)
For that reason exclude it from the paramtest and fix
if someone raises an issue

* tests(abess): disable failing test for abess classif learner

This was not a issue previously and might have been introduced
in abess 0.4.7

abess-team/abess#493
@bbayukari
Copy link
Collaborator

Hey, we have fixed this issue and the code for reproduction has been able to pass. We will soon publish a new abess version to completely address this issue.

Is there something else shall we do?

@sebffischer
Copy link
Author

Thanks!
No thats it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants