Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
31428695
Commit
31428695
authored
Jan 08, 2021
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TemperingState: fix verbose output
parent
9a39a155
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/graph_tool/inference/mcmc.py
src/graph_tool/inference/mcmc.py
+2
-2
No files found.
src/graph_tool/inference/mcmc.py
View file @
31428695
...
...
@@ -685,7 +685,7 @@ class TemperingState(object):
if
check_verbose
(
verbose
):
print
(
verbose_pad
(
verbose
)
+
u
"swapped states: %d [β = %g] <-> %d [β = %g], a: %g"
%
\
(
i
,
b1
,
j
,
b2
,
a
))
(
i
,
b1
,
j
,
b2
,
exp
(
-
ddS
)
))
return
dS
,
nswaps
def
states_move
(
self
,
sweep_algo
,
**
kwargs
):
...
...
@@ -721,7 +721,7 @@ class TemperingState(object):
if
numpy
.
random
.
random
()
<
r
:
return
self
.
states_swap
(
adjacent
=
adjacent
,
**
kwargs
)
else
:
return
self
.
states_move
(
algo
,
**
kwargs
)
return
self
.
states_move
(
algo
,
**
dict
(
kwargs
,
verbose
=
False
)
)
def
mcmc_sweep
(
self
,
**
kwargs
):
"""Perform a full mcmc sweep of the parallel states, where swap or moves are
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment