Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
psimpy
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
mbd
psimpy
Commits
710548fa
Commit
710548fa
authored
2 years ago
by
Hu Zhao
Browse files
Options
Downloads
Patches
Plain Diff
docs: change doc string of sample function
parent
7bcd40ef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/psimpy/sampler/metropolis_hastings.py
+2
-2
2 additions, 2 deletions
src/psimpy/sampler/metropolis_hastings.py
with
2 additions
and
2 deletions
src/psimpy/sampler/metropolis_hastings.py
+
2
−
2
View file @
710548fa
...
...
@@ -136,8 +136,8 @@ class MetropolisHastings:
mh_accept : numpy array
An array of shape (nsamples,). Each element indicates whether the
corresponding sample is the proposed new state (value 1) or the old
state (value 0). `np.
sum(mh_accept)/le
n(mh_accept)` thus gives the
overall
acceptance rate.
state (value 0). `np.
mea
n(mh_accept)` thus gives the
overall
acceptance rate.
"""
if
(
self
.
target
is
None
)
and
(
self
.
ln_target
is
None
):
raise
ValueError
(
...
...
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