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

predict bug #10

Open
jgiemza opened this issue Apr 3, 2020 · 1 comment
Open

predict bug #10

jgiemza opened this issue Apr 3, 2020 · 1 comment

Comments

@jgiemza
Copy link

jgiemza commented Apr 3, 2020

Hello,

I can't run predict function on my current data.

blockfor_cv <- blockfor(data_tr_cv, y_tr_cv, num.trees = 2000, replace = FALSE, probability = FALSE, blocks=blocks, nsets = 300, num.trees.pre = 1500, splitrule="extratrees", importance = "impurity", block.method = "BlockForest", num.threads=10, always.select.block=0)

testpred <- predict(blockfor_cv$forest, data=data_te_cv, block.method=BlockForest, num.threads=10)

gives error:Error in [.data.frame(data, , forest$independent.variable.names, drop = FALSE) : undefined columns selected

Colnames of data_tr_cv are the same as in data_te_cv.

I have looked at your code and I guess the error corresponds to line 128 in predict.R. My response is binary. It should not be there I guess because I don't specify data as a formula.

I would be glad if you could help me.

@mnwright
Copy link
Member

mnwright commented May 4, 2020

Could you give a reproducible example? I cannot reproduce your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants