Float Tolerances in NumPy Testing

A personal field guide to choosing floating-point tolerances in NumPy tests, starting from machine epsilon and ending with a few habits for assert_allclose, Hypothesis, and near-zero vector operations.

May 4, 2026 · 7 min · 1451 words · Hojae Lee

Steven's Power Law

Exploring how Stevens’s Power Law mathematically describes our subjective perception of sensory stimuli, from brightness to pain, and why different senses compress or amplify physical intensity in predictable ways.

May 24, 2025 · 2 min · 341 words · Hojae Lee