Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
9948927
1
Parent(s):
e33b3d7
Refactor projection logic in sim_contest function to improve clarity and performance. Updated handling of the first column using 'vec_cpt_projection_map' and adjusted the application of 'vec_projection_map' for remaining columns, ensuring consistent simulation calculations.
Browse files
app.py
CHANGED
@@ -214,9 +214,10 @@ def sim_contest(Sim_size, seed_frame, maps_dict, sharp_split, Contest_Size):
|
|
214 |
sample_arrays1 = np.c_[
|
215 |
fp_random,
|
216 |
np.sum(np.random.normal(
|
217 |
-
loc=np.
|
218 |
-
vec_cpt_projection_map(fp_random[:,
|
219 |
-
vec_projection_map(fp_random[:, :-7])
|
|
|
220 |
scale=vec_stdev_map(fp_random[:, :-7])),
|
221 |
axis=1)
|
222 |
]
|
|
|
214 |
sample_arrays1 = np.c_[
|
215 |
fp_random,
|
216 |
np.sum(np.random.normal(
|
217 |
+
loc=np.concatenate([
|
218 |
+
vec_cpt_projection_map(fp_random[:, 0:1]), # Apply cpt_projection_map to first column
|
219 |
+
vec_projection_map(fp_random[:, 1:-7]) # Apply original projection to remaining columns
|
220 |
+
], axis=1),
|
221 |
scale=vec_stdev_map(fp_random[:, :-7])),
|
222 |
axis=1)
|
223 |
]
|