Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
bilby
Commits
854f1deb
Commit
854f1deb
authored
6 years ago
by
Matthew David Pitkin
Committed by
Moritz Huebner
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Raise exception is nburn if greater than the total number of iterations for emcee
parent
d205e415
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bilby/core/sampler/emcee.py
+9
-2
9 additions, 2 deletions
bilby/core/sampler/emcee.py
with
9 additions
and
2 deletions
bilby/core/sampler/emcee.py
+
9
−
2
View file @
854f1deb
...
...
@@ -20,8 +20,10 @@ class Emcee(MCMCSampler):
nsteps: int, (100)
The number of steps
nburn: int (None)
If given, the fixed number of steps to discard as burn-in. Else,
nburn is estimated from the autocorrelation time
If given, the fixed number of steps to discard as burn-in. These will
be discarded from the total number of steps set by `nsteps` and
therefore the value must be greater than `nsteps`. Else, nburn is
estimated from the autocorrelation time
burn_in_fraction: float, (0.25)
The fraction of steps to discard as burn-in in the event that the
autocorrelation time cannot be calculated
...
...
@@ -81,6 +83,11 @@ class Emcee(MCMCSampler):
@nburn.setter
def
nburn
(
self
,
nburn
):
if
isinstance
(
nburn
,
(
float
,
int
)):
if
nburn
>
self
.
kwargs
[
'
iterations
'
]
-
1
:
raise
ValueError
(
'
Number of burn-in samples must be smaller
'
'
than the total number of iterations
'
)
self
.
__nburn
=
nburn
@property
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment