microsoft / hummingbird

Hummingbird compiles trained ML models into tensor computation for faster inference.
MIT License
3.32k stars 274 forks source link

allow derived types of DataFrame #637

Closed liangfu closed 1 year ago

liangfu commented 1 year ago

This PR updates DataFrame type checkings to allow derived types of DataFrame as input type.

codecov-commenter commented 1 year ago

Codecov Report

Merging #637 (f95dcb9) into main (a090681) will decrease coverage by 0.01%. The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main     #637      +/-   ##
==========================================
- Coverage   90.20%   90.18%   -0.02%     
==========================================
  Files          78       77       -1     
  Lines        4563     4556       -7     
  Branches      945      846      -99     
==========================================
- Hits         4116     4109       -7     
  Misses        252      252              
  Partials      195      195              
Flag Coverage Δ
unittests 90.18% <66.66%> (-0.02%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
hummingbird/ml/_executor.py 82.19% <0.00%> (ø)
...ngbird/ml/containers/sklearn/pytorch_containers.py 83.33% <0.00%> (ø)
hummingbird/ml/_utils.py 88.13% <100.00%> (ø)
...mmingbird/ml/containers/_sklearn_api_containers.py 89.39% <100.00%> (ø)
hummingbird/ml/containers/batch_container.py 85.00% <100.00%> (ø)
hummingbird/__init__.py

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.