serJD commited on
Commit
de71d06
1 Parent(s): 56dfff9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ def huff_model_probability(df_distances, df_attractiveness, alpha, beta, df_popu
20
  lambda x: np.exp(-(max(0, x - distance_threshold)) * decay_factor))
21
  else:
22
  adjustment_factors[:] = 1
 
 
23
 
24
  adjusted_population = df_population.repeat(df_distances.shape[1]).values.reshape(df_distances.shape) * adjustment_factors
25
  attractiveness_term = df_attractiveness ** alpha
 
20
  lambda x: np.exp(-(max(0, x - distance_threshold)) * decay_factor))
21
  else:
22
  adjustment_factors[:] = 1
23
+ # deactivate adjustment factor !!!!!!!!!!!!!!!!!!!!
24
+ adjustment_factors[:] = 1
25
 
26
  adjusted_population = df_population.repeat(df_distances.shape[1]).values.reshape(df_distances.shape) * adjustment_factors
27
  attractiveness_term = df_attractiveness ** alpha