Skip to content

Commit

Permalink
Fixes dispersion sampling error
Browse files Browse the repository at this point in the history
  • Loading branch information
tbohlen committed Dec 22, 2012
1 parent b59ead9 commit ffa03b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/analysis.py
Expand Up @@ -16,8 +16,8 @@

DISPERSION_PARAMETER = 200.0

walk_in = 10
samples = 10
walk_in = 40
samples = 5

"""
Function: get_image_matrix
Expand Down Expand Up @@ -397,7 +397,7 @@ def sample_disp(current_partition, image_id, group, params):
# choose one
prob = disp_log_prob
if diff >= 1.0 or random.uniform(0.0, 1.0) <= diff:
params[3] = new_disp
params[4] = new_disp
prob = new_disp_log_prob
return [params, prob]

Expand Down

0 comments on commit ffa03b9

Please sign in to comment.