Skip to content
GitLab
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
95e1e194
Commit
95e1e194
authored
Apr 16, 2016
by
Tiago Peixoto
Browse files
test_inference_mcmc.py: decrease probability of false negatives
parent
b4e25c3d
Pipeline
#164
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/test_inference_mcmc.py
View file @
95e1e194
...
...
@@ -49,7 +49,7 @@ for directed in [True, False]:
state
=
minimize_blockmodel_dl
(
g
,
deg_corr
=
False
,
B_min
=
B
,
B_max
=
B
)
state
=
state
.
copy
(
B
=
B
+
1
)
c
=
0.
0
1
c
=
0.1
for
v
in
g
.
vertices
():
# computed probabilities
...
...
@@ -57,7 +57,7 @@ for directed in [True, False]:
for
s
in
range
(
state
.
B
):
mp
[
s
]
=
state
.
get_move_prob
(
v
,
s
,
c
)
n_samples
=
40000
n_samples
=
min
(
int
(
200
/
mp
.
min
()),
1000000
)
# actual samples
samples
=
[
state
.
sample_vertex_move
(
v
,
c
)
for
i
in
range
(
n_samples
)]
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment