Граф коммитов

435 Коммитов

Автор SHA1 Сообщение Дата
Karla Saur 9f71c2c889
Deprecate Python 3.5 (#441)
* attemping to deprecate python 3.5 and onboard 3.9. Can't wait to see what breaksgit add .

* Holding on 3.9 for multiple deps

* making 3.6 also run TVM
2021-02-12 10:36:01 -08:00
Karla Saur 96129c7268
cleaning up lgbm onnx notebook (#439)
* cleaning up lgbm onnx notebook

* clarifying ONNXML and ONNX example

* restarting numbering
2021-02-11 10:09:28 -08:00
Matteo Interlandi c525c51060
Revert #419 (#438) 2021-02-02 17:11:00 -08:00
Matteo Interlandi 2079c3e437 Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-02-02 13:07:40 -08:00
Matteo Interlandi b88b6f7e02
Revert "trees with one leaf set missing to left to avoid unnecessary is_nan check (#435)" (#437)
This reverts commit c04a3a2efe.
2021-02-02 11:20:16 -08:00
Supun Nakandala c04a3a2efe
trees with one leaf set missing to left to avoid unnecessary is_nan check (#435) 2021-01-29 14:05:39 -08:00
Matteo Interlandi a9ac902d14 Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-01-27 16:02:49 -08:00
Matteo Interlandi 95f01ea83d
Fix bug in onnx regression trees with degenerate trees (#432) 2021-01-24 17:24:29 -08:00
Matteo Interlandi b0e94df1de Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-01-24 14:37:43 -08:00
Supun Nakandala 234e29a181
Multioutput regression support for sklearn models (#430)
* native multioutput regression support for some sklearn models

* fixing numerical precision issues

* working around numerical precision issues

* wip

* minor changes
2021-01-13 14:27:09 -08:00
Supun Nakandala 108c2a6755
Missing Value Support in XGBoost and LightGBM (#419)
* adding xgb missing value support for tree_trav methods

* xgb missing value support for gemm tree implementation

* fixing error failures

* fixing more errors

* fixing tvm issue

* missing value can be encoded as anything

* adding missing value handling support for LightGBM

* adding both classification and regression tests
2021-01-12 16:09:15 -08:00
Matteo Interlandi 94b584b87b
Refactoring of Topology (#427) 2021-01-12 14:32:47 -08:00
Matteo Interlandi f585bcbe9d Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-01-12 10:11:02 -08:00
Matteo Interlandi 34bccdb09d
Fix bloated models when saving (#429) 2021-01-12 09:47:28 -08:00
qin-xiong 4e240a8b38
Remove duplicated code (#428)
The code for getting n_classes is repeated twice. One should be removed.
2021-01-11 08:08:50 -08:00
Matteo Interlandi 2c5b19f34e
Fix bug with degenerate trees (#426)
* solve error with degenerate trees
better error handling in case of exceptions during conversion
2021-01-07 17:17:08 -08:00
Matteo Interlandi 1af5f14834
Fix save to pytorch for onnx models with trees (#425)
* fix save for onnx models converted into torch
2021-01-07 16:56:44 -08:00
Matteo Interlandi 62acba15b7 Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-01-07 10:50:41 -08:00
Karla Saur ed4d0bfe41
updating macos ci/cd (#418)
* seeing if macos-10.15 works now (previously changed from -latest due to unexpected version conflict
2021-01-05 09:43:56 -08:00
Matteo Interlandi ed3a903409
Fix typo (#416)
* fix typo
2021-01-05 09:30:50 -08:00
Matteo Interlandi b1a285c9a8 Merge branch 'main' of https://github.com/microsoft/hummingbird into main 2021-01-05 08:35:30 -08:00
Matteo Interlandi 5f68a0936c
Add support for modified huber loss in SGD (#415)
* add support for modified huber loss in sgd

* fix tests with linear svm

* add better error handling for non supported losses

* add additional test
2021-01-04 17:52:52 -08:00
Matteo Interlandi d2a1aab63b fix typo 2021-01-04 16:58:27 -08:00
Karla Saur ff9f5b4370
torch 1.7.0 -> torch 1.7.1 (#414)
* testing out torch 1.7.1

* minor changeset bump
2021-01-04 14:01:56 -08:00
Matteo Interlandi ea1d4f3d34 add support for modified huber loss in sgd 2021-01-04 12:10:36 -08:00
Matteo Interlandi db832d593c
Add padding to TVM (#410)
* add padding to TVM

* fix save for tvm

* add test for tvm without padding and wrong shapes

* add warning to supported

* pin scipy
2020-12-31 09:50:41 -08:00
Matteo Interlandi 2835c61528
Refactoring of topology (#409)
* refactoring of topology.
welcome model runner!

* change model runner in executor
2020-12-30 16:28:33 -08:00
Matteo Interlandi ec30662051
Fix scaling in onnx (#408)
* fix scaling in onnx

* add tests with double types
2020-12-30 14:36:35 -08:00
Matteo Interlandi bedf9aa1c0
Refactoring of the containers (#407)
* rafactor containers
2020-12-30 14:36:16 -08:00
Matteo Interlandi 8dc608f0c6
Fix TVM load (#405)
* fix the dir path in load

* fix naming for saving when location contains zip
2020-12-29 20:58:20 -08:00
Matteo Interlandi ef4369234c
Fix the dir path in load (#404)
* fix the dir path in load

* fix naming for saving when location contains zip
2020-12-29 14:19:44 -08:00
Karla Saur cf8bc841a3
bump to v0.2.0 (#403) 2020-12-29 11:10:20 -08:00
Matteo Interlandi 958cc777a5
Some random fixes to onnx-related code (#402)
* some random fixes to onnx-related code

* fix to readme
2020-12-29 10:13:26 -08:00
Matteo Interlandi 6749069d02
Better load model support (#401)
* fix bug with tvm

* add generic load method
renamed the containers to avoid confusion

* add save \ load to readme

* better loading
add zip \ unzip
2020-12-29 09:45:09 -08:00
Matteo Interlandi b8ec670b3c
Add save\load to containers (#399)
* Add save\load for pytorch\tvm models
Add related tests

* add code and test for saving torch.jit and onnx models

* add dill

* Addressing PR comments
2020-12-23 15:50:35 -08:00
Matteo Interlandi bec5a9868a
Add native support for string features (#396)
* add max string param to operators working on strings

* Add native support for string features

* fix tests to use the new string type

* adding supported string types to constants
2020-12-21 14:01:29 -08:00
Matteo Interlandi 7b1dbebae6
Add onnx Feature Vectorizer (#385)
* [WIP] onnxml Label Encoder

* adding another case for nfeatures

* fix to label encoder

* add onnx feature vectorizer

Co-authored-by: Karla Saur <kasaur@microsoft.com>
2020-12-21 12:37:48 -08:00
Karla Saur abb07597ee
onnxml and SKL Label Encoder (#374)
* [WIP] onnxml Label Encoder

* lint

* adding another case for nfeatures

* fix to label encoder

* fixing nfeatures from rebase

* adding failcase

* checking in progress

* adding test for bad backend intput

* adding skl labelenc

* rebase to #387

* tmp fix so my other tests will also run...

* cleanup

* getting the right error for bad input

* adding failing case for onnxml strings

* fix to label encoder

* fix error

* try with ravel

* adding failcase for onnx strings

* typo

* cleanup

* add test for onnxml label encoder on string
fix bug in convert when inputs have len(shape) == 1

* add comment on the limit of onnx export for label encoder string

* bumping to torch==1.8 for some cases

* RuntimeError for olderpyt

* removing extra line

* saving 1.8 for another day

Co-authored-by: Matteo Interlandi <mainterl@microsoft.com>
2020-12-17 16:01:34 -08:00
Matteo Interlandi b33b440725
Fix to base_prediction for gemm and perf_tree (#395)
* base_prediction can now move to gpu with the model

* fix base_prediction for gemm and perf_tree
2020-12-16 10:54:34 -08:00
Matteo Interlandi 60ab844981
Move base_prediction to gpu when model is moved (#394)
* base_prediction can now move to gpu with the model
2020-12-15 16:58:53 -08:00
Karla Saur 8dda60023d
fixing non-ASCII char in long_description (#392) 2020-12-15 10:02:43 -08:00
Matteo Interlandi 7d0dee52a5
fix problem with doubles in PCA (#391) 2020-12-15 09:59:48 -08:00
masahi 71c951d31c
Introduce BatchContainer for batch by batch prediction use case (#377)
* introducing BatchContainer

* BatchContainer basic functionality done

* pass test_input to _convert

* introduce convert_batch API

* use convert_batch in the benchmark

* store _batch_size attribute

* test working

* run black, add concat output option, fix benchmark

* fix getattr

* fix operator benchmark

* support transform and decision function

* make sure input is tuple not list

* fix torch backend prediction

* begin fixing tests

* squeeze and ravel on onnx regression output

* all tests in test_extra_conf.py working

* restore BATCH_SIZE and k neighbor test

* fix onnxml test

* run black on test_extra_conf.py

* fix test_sklearn_normalizer_converter.py

* fix test_lightgbm_converter.py

* fixing more onnxml tests

* fixed remaining onnxml tests

* use format, fix pylint

* fix typo

* add document

* add missing doc

* fix typo

* doc update, remove unused stuff
2020-12-14 14:09:37 -08:00
Matteo Interlandi 779c1cc683
Fix imputation for tvm (#386)
* fix imputation for tvm
add tests for tvm and torch.jit
2020-12-14 09:43:58 -08:00
Karla Saur ea37a5e5b2
trying with newer numpy (#390) 2020-12-14 09:33:52 -08:00
Karla Saur 8f1b6166b9
trying to get pipeline working (#387)
* trying to get pipeline working

* updating string

* rtol atol

* pinning to macos version, reverint to 1 cache. removing rtol for now..

* macos 10.14

* rtol back
2020-12-12 08:13:02 -08:00
Matteo Interlandi 8802aaf426
fix f64 problem (#382)
* fix f64 problem
2020-12-09 13:18:46 -08:00
Matteo Interlandi 857287356c
Fix to linear ONNX (#379)
* fix problem with wrong multiclass in onnx linear model
2020-12-07 22:29:26 -08:00
Matteo Interlandi 63ea67f6db
Fix problem with ONNX models (#378)
* Fix problem with inputs of shape == 0
Use proper data types for scalers
Remove ONNX_INPUTS since is not used

* Add missing test
fix problem with N_features when no test input is passed

* add explisti case for concat
2020-12-07 19:23:00 -08:00
masahi 6cab8ee804
Refactor TVM compilation and prediction code (#376)
* refactor tvm compile and predict code

* run black
2020-12-04 09:50:12 -08:00