guanyilun / galilei

A generic function emulator that supports multiple backends
MIT License
1 stars 0 forks source link

support loading a collection which contains everything #14

Closed guanyilun closed 1 year ago

guanyilun commented 1 year ago

Allow loading a collection of precomputed output. The input is a path to a collection that is a dictionary with keys X, Y and samples.

@emulate(collection="test.pkl")
def test(a, b):
    pass
codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 52.94% and project coverage change: +23.20 :tada:

Comparison is base (27ce372) 11.16% compared to head (a18e472) 34.36%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #14 +/- ## =========================================== + Coverage 11.16% 34.36% +23.20% =========================================== Files 9 9 Lines 412 419 +7 =========================================== + Hits 46 144 +98 + Misses 366 275 -91 ``` | [Impacted Files](https://codecov.io/gh/guanyilun/galilei/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan) | Coverage Δ | | |---|---|---| | [galilei/emulator.py](https://codecov.io/gh/guanyilun/galilei/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan#diff-Z2FsaWxlaS9lbXVsYXRvci5weQ==) | `55.46% <52.94%> (+40.59%)` | :arrow_up: | | [galilei/experimental.py](https://codecov.io/gh/guanyilun/galilei/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan#diff-Z2FsaWxlaS9leHBlcmltZW50YWwucHk=) | `67.56% <0.00%> (+67.56%)` | :arrow_up: | | [galilei/backends/sklearn.py](https://codecov.io/gh/guanyilun/galilei/pull/14?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan#diff-Z2FsaWxlaS9iYWNrZW5kcy9za2xlYXJuLnB5) | `90.90% <0.00%> (+90.90%)` | :arrow_up: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yilun+Guan)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.