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

Regulariser amendment and implementation in ParticleUpdater #830

Merged
merged 3 commits into from
Aug 30, 2023

Conversation

timothy-glover
Copy link
Contributor

The prior used for the MCMCRegulariser should be projected through time without the inclusion of noise. To do this, transition_model has been added as a property of the MCMCRegulariser. The transition model is used to propagate the prior particles at the beginning of the regularise() method. The support for lists of type Particle has also been dropped to allow for the calculation of the time interval in the regularise() method.

@timothy-glover timothy-glover requested a review from a team as a code owner July 20, 2023 15:22
@timothy-glover timothy-glover requested review from nperree-dstl and rcgorman-dstl and removed request for a team July 20, 2023 15:22
Copy link
Contributor

@rcgorman-dstl rcgorman-dstl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

Comment on lines 32 to 35
transition_model: TransitionModel = Property(doc="Transition model used for prediction")

def regularise(self, prior, posterior, detections):
"""Regularise the particles
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also pass an optional transition model, using the hypothesis.prediction.transition_model, from the updater, and falling back to provide one (on self) if not provided. Possibly via **kwargs or even passing hypothesis instead?

@sdhiscocks sdhiscocks merged commit 0c6ca88 into dstl:main Aug 30, 2023
6 checks passed
@sdhiscocks sdhiscocks added the bug label Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants