Closed albertpod closed 9 months ago
I guess we can make it mandatory and allow missing
as an input in case someone comes up with a scenario where it is not mandatory.
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
Attention: 5 lines
in your changes are missing coverage. Please review.
Comparison is base (
792c6e3
) 80.31% compared to head (a805ce9
) 80.31%.
Files | Patch % | Lines |
---|---|---|
src/inference.jl | 88.88% | 5 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I recommend not halting this PR for long @bvdmitri
This PR addresses issue #181 and marks significant update to the
RxInfer
, wherein we merge the functionalities ofinference
andrxinference
into a single, "umbrella" function:infer
. This change simplifies the user interface by providing a unified method for conducting both static and streaming probabilistic inference.The decision to use
infer
for static or streaming datasets is now determined by the presence of theautoupdates
keyword. This keyword is crucial in controlling how updated posteriors are transformed into priors for the following observations, making it specifically applicable and essential for streaming data (real-world) scenarios.Key Changes:
Unified Inference Functionality: The
infer
function consolidates all features previously divided betweeninference
andrxinference
. The original functions have been internally renamed to__inference
and__rxinference
and are no longer exported. This unified approach enablesinfer
to support both batch/static and streaming/online applications.Updated Documentation: Comprehensive updates have been made to the documentation to reflect the merging of
inference
andrxinference
. This includes a detailed and clear docstring for theinfer
function, ensuring ease of use and understanding.Updated Examples: All examples across the package have been updated to utilize the new
infer
function, demonstrating its application in various contexts.Deprecation Notices: Appropriate deprecation notices have been added for the
inference
andrxinference
functions, guiding users towards the new unified approach. (I haven't managed to make@deprecate inference(; kwargs...) infer(kwargs...)
work, seems deprecate macro isn't good for keyword arguments)