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

Added general unit test for label switching #34

Closed
wants to merge 2 commits into from

Conversation

001ben
Copy link

@001ben 001ben commented Sep 25, 2019

Added general test case to flag label switching. Tested by training each classifier against a very easy task and comparing raw output from "predict" function.

Didn't use output from learner$predict(task) as this wouldn't have picked up #32 (i.e. in that issue, train_internal was inverting the labels, predict_internal was inverting the predicted labels back again, only caused issues within the model for xgboost watchlist functionality)

@001ben
Copy link
Author

001ben commented Sep 25, 2019

Oh also this PR is to address #33

@codecov-io
Copy link

Codecov Report

Merging #34 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master     #34   +/-   ##
======================================
  Coverage    97.6%   97.6%           
======================================
  Files          18      18           
  Lines         626     626           
======================================
  Hits          611     611           
  Misses         15      15

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 333f231...a6e8efc. Read the comment docs.

@001ben
Copy link
Author

001ben commented Sep 25, 2019

PR not required as mentioned in #33

@001ben 001ben closed this Sep 25, 2019
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