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
Unit tests and fixes for R/models.R #129
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is good to have.
Since we only support binary classification and not multiclass classification, we should probably have checks for that too. I.e. a stop in either the model_type (preferrably) or predict_model if a multiclass model is provided. Can you fix that?
👍 |
@martinju Updated with tests for multi-classification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just fix the typo and we are good.
Fixed typos with 7ed8625. |
Summarized
'something'
to"something"
inR/models.R
predict_model.*
R/models.R
so that it handles both data.frame and matrix as input.ranger
. If you're passing a classification model it needs to be a probability forest (if that is not the case you'll only get predicted classes and not probabilities).tests/testthat/test-models.R