Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
9dd4ae83
Commit
9dd4ae83
authored
Jun 26, 2016
by
Tiago Peixoto
Browse files
Fix Python 2 syntax error
parent
ffac9b09
Changes
1
Show whitespace changes
Inline
Side-by-side
src/graph_tool/inference/mcmc.py
View file @
9dd4ae83
...
...
@@ -691,6 +691,6 @@ class TemperingState(object):
individual states' `gibbs_sweep()` method.
"""
if
numpy
.
random
.
random
()
<
.
5
:
return
self
.
states_move
(
**
kwargs
,
gibbs
=
True
)
return
self
.
states_move
(
gibbs
=
True
,
**
kwargs
)
else
:
return
self
.
states_swap
(
**
kwargs
)
Write
Preview
Supports
Markdown
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