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

Fix `preProcess` for simple data #679

Merged
merged 22 commits into from Jul 22, 2017
Merged

Conversation

@mkobos
Copy link
Contributor

@mkobos mkobos commented Jul 3, 2017

preProcess doesn't work properly when the transformations in preProcess are related to individual columns only (e.g. when method list is equal to list(center="y", ignore="x") inside this function) . This is because the piece of code in preProcess.R file (lines 279-285) transforms the method list into a vector in such case and this change of type is not what further operations in the code expect. As a result, execution of line 357 ends up with error $ operator is invalid for atomic vectors when test in file test_preProcess_internals.R is run.

This pull request fixes this problem by disallowing the implicit change of the type.

hadjipantelis and others added 5 commits May 13, 2017
@coveralls
Copy link

@coveralls coveralls commented Jul 3, 2017

Coverage Status

Coverage increased (+0.03%) to 19.61% when pulling 5a033aa on mkobos:mkobos_preprocess_fix into 5633226 on topepo:master.

topepo added 2 commits Jul 7, 2017
Adding MAE as a standard output for regression tasks
Fixing error message
@topepo
Copy link
Owner

@topepo topepo commented Jul 7, 2017

Thanks! Can you add a note in the NEWS.Rd file to reflect the fix?

@mkobos
Copy link
Contributor Author

@mkobos mkobos commented Jul 7, 2017

Sure.

@topepo
Copy link
Owner

@topepo topepo commented Jul 22, 2017

Can you do a quick sync and resolve the conflict in the news file?

@topepo
Copy link
Owner

@topepo topepo commented Jul 22, 2017

Thanks again.

@topepo topepo merged commit 04a3d80 into topepo:master Jul 22, 2017
1 check was pending
1 check was pending
continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
@mkobos mkobos deleted the mkobos:mkobos_preprocess_fix branch Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.