Skip to content

Instantly share code, notes, and snippets.

View tenecsson's full-sized avatar

Max Tenecsson tenecsson

  • Earth
View GitHub Profile
@tenecsson
tenecsson / bailb.py
Created April 25, 2026 00:18
best arm identification lower bound 1d solver
#!/usr/bin/env python3
import math
import time
from typing import Callable, List, Optional, Sequence, Tuple
import numpy as np
from scipy.optimize import brentq
@tenecsson
tenecsson / topm.py
Created April 24, 2026 22:44
Top m arm identification lower bound approximation
#!/usr/bin/env python3
import math
import time
from typing import Callable, List, Optional, Sequence, Tuple
import numpy as np
from scipy.optimize import brentq, minimize_scalar
# -----------------------------------------------------------------------------