nessai.proposal.base
Base object for all proposal classes.
Module Contents
Classes
Base proposal object |
Attributes
- nessai.proposal.base.logger
- class nessai.proposal.base.Proposal(model)
Bases:
abc.ABC
Base proposal object
- Parameters
- model: obj
User-defined model
- property initialised(self)
Boolean that indicates if the proposal is initialised or not.
- initialise(self)
Initialise the proposal
- evaluate_likelihoods(self)
Evaluate the likelihoods for the pool of live points.
- abstract draw(self, old_param)
New a new point given the old point
- test_draw(self)
Test the draw method to ensure it returns a sample in the correct format and the the log prior is computed.
- train(self, x, **kwargs)
Train the proposal method
- Parameters
- x: array_like
Array of live points to use for training
- kwargs:
Any of keyword arguments
- resume(self, model)
Resume the proposal with the model