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

Remove undefined behavior when predicting with invalid category value #335

Merged
merged 8 commits into from
Jan 13, 2022

Conversation

hcho3
Copy link
Collaborator

@hcho3 hcho3 commented Jan 12, 2022

Closes #328

@levsnv

@hcho3 hcho3 force-pushed the handle_invalid_category branch from 9eadec0 to a3496e6 Compare January 12, 2022 21:47
@codecov
Copy link

codecov bot commented Jan 12, 2022

Codecov Report

Merging #335 (ffe552b) into mainline (09521bc) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff               @@
##             mainline     #335      +/-   ##
==============================================
- Coverage       84.86%   84.86%   -0.01%     
  Complexity         42       42              
==============================================
  Files             108      108              
  Lines            8420     8426       +6     
  Branches          470      471       +1     
==============================================
+ Hits             7146     7151       +5     
- Misses           1251     1252       +1     
  Partials           23       23              
Impacted Files Coverage Δ
src/compiler/ast_native.cc 96.37% <100.00%> (+0.01%) ⬆️
src/gtil/predict.cc 86.61% <100.00%> (+0.38%) ⬆️
src/annotator.cc 91.07% <0.00%> (-1.20%) ⬇️
python/treelite/frontend.py 75.44% <0.00%> (+0.29%) ⬆️

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 09521bc...ffe552b. Read the comment docs.

@hcho3 hcho3 force-pushed the handle_invalid_category branch from 395c574 to 65cdd86 Compare January 12, 2022 22:38
src/compiler/ast_native.cc Show resolved Hide resolved
src/gtil/predict.cc Outdated Show resolved Hide resolved
tests/python/test_invalid_categocial_input.py Outdated Show resolved Hide resolved
src/compiler/ast_native.cc Show resolved Hide resolved
@hcho3 hcho3 merged commit 9b7be0f into dmlc:mainline Jan 13, 2022
@hcho3 hcho3 deleted the handle_invalid_category branch January 13, 2022 16:06
This was referenced Jan 13, 2022
rapids-bot bot pushed a commit to rapidsai/cuml that referenced this pull request Jan 25, 2022
The 2.2.0 version of Treelite incorporates the following major improvements:

* dmlc/treelite#314
* dmlc/treelite#322, dmlc/treelite#327
* dmlc/treelite#325
* dmlc/treelite#332
* dmlc/treelite#330
* dmlc/treelite#333
* dmlc/treelite#334
* dmlc/treelite#304
* dmlc/treelite#335

In particular, dmlc/treelite#332, dmlc/treelite#330, dmlc/treelite#333 are required for #4447.

Requires rapidsai/integration#412.

EDIT. Using 2.2.1 patch release, to incorporate a hotfix (dmlc/treelite#340).

Authors:
  - Philip Hyunsu Cho (https://github.com/hcho3)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: #4484
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
The 2.2.0 version of Treelite incorporates the following major improvements:

* dmlc/treelite#314
* dmlc/treelite#322, dmlc/treelite#327
* dmlc/treelite#325
* dmlc/treelite#332
* dmlc/treelite#330
* dmlc/treelite#333
* dmlc/treelite#334
* dmlc/treelite#304
* dmlc/treelite#335

In particular, dmlc/treelite#332, dmlc/treelite#330, dmlc/treelite#333 are required for rapidsai#4447.

Requires rapidsai/integration#412.

EDIT. Using 2.2.1 patch release, to incorporate a hotfix (dmlc/treelite#340).

Authors:
  - Philip Hyunsu Cho (https://github.com/hcho3)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Dante Gama Dessavre (https://github.com/dantegd)

URL: rapidsai#4484
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.

[GTIL] Remove undefined behavior when negative input is given to a categorical test
2 participants