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

DS-3488 Validate Dummy adjusted missing data properly #18

Merged
merged 2 commits into from
Aug 26, 2021
Merged

Conversation

jrwishart
Copy link
Contributor

Ensure that Predictor validation checks correctly account for edge cases
in dummy variable adjustment when all predictors have missing data and
the dummy variable is redundant

Ensure that Predictor validation checks correctly account for edge cases
in dummy variable adjustment when all predictors have missing data and
the dummy variable is redundant
dummy.adjusted.importance <- regression.model &&
object$missing == "Dummy variable adjustment" &&
!is.null(object$importance.type)
if ("formula" %in% names(object) && !dummy.adjusted.importance && !inherits(object, "LDA"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why "LDA" here? Comments indicate the special case is for "CART".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'll add a comment. Off memory, the LDA output seems to mangle the variable names and append .2 to everything. So the variable names are better deduced from the model element instead.

@mwmclean mwmclean merged commit e25f4d6 into master Aug 26, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants