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

Warning on class comparision #19

Closed
surmann opened this issue Nov 6, 2015 · 2 comments
Closed

Warning on class comparision #19

surmann opened this issue Nov 6, 2015 · 2 comments

Comments

@surmann
Copy link

surmann commented Nov 6, 2015

Hallo Marvin,
I get the following warning message with the CRAN version 0.2.7:

Warning message:
In if (class(data) == "gwaa.data") { :
  the condition has length > 1 and only the first element will be used

You can reproduce it by the following MWE:

library(data.table)
data("iris")
ranger(Species~., data = as.data.table(iris))

Thanks for your work!

@mnwright
Copy link
Member

mnwright commented Nov 9, 2015

This is already fixed here on GitHub. See pull request #11. Coming to CRAN soon.

@mnwright mnwright closed this as completed Nov 9, 2015
@MahdiSafarpour
Copy link

Hello Marvin,

This problem still remains in version ‘0.1.6.33’. Does this message mean that we cannot trust on outputs?
I get this message when I run following codes:
Ranger=ranger(Species~ . , data =iris, probability=TRUE, write.forest=TRUE, importance="pairwise")
prediction=predict(Ranger, data=iris ,type = "response")

Thank you in advance for your reply!

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

3 participants