Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BFTUSk/sim_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ def run_sim(strategy="random", exploit_kill=True, verbose=False, float_vals=None

# ---------- probability path ----------
p_end = np.random.choice(reward_chance_endpoints)
p_lin = np.linspace(0.5, p_end, n_samples)
p_lin = np.linspace(0.3, p_end, n_samples) #adjusted to 30% from 50%; accomadating change for exploit_kill
snr_db = np.random.choice(snr_db_levels)
noise = np.random.normal(0,
np.sqrt(np.mean(p_lin**2)) / (10**(snr_db/20)),
p_lin.shape)
if exploit_kill:
x = np.linspace(0, 1, n_samples) # 0 … last flash
alpha = 2.5 # >1 → slow start, fast finish
p_curve = 0.5 + (p_end - 0.5) * x**alpha # concave ramp
p_curve = 0.3 + (p_end - 0.3) * x**alpha # concave ramp
p_noisy = np.clip(p_curve + noise, 0, 1)
else:
p_noisy = np.clip(p_lin + noise, 0, 1)
Expand Down
16 changes: 8 additions & 8 deletions scripts/sim_analysis_random.ipynb

Large diffs are not rendered by default.