~/talk

Why the float did it NaN?

Talkat PyConline AU 2020 · 2020-09-04..09-06· [machine-learning, python]
links:none on file
slides:none on file

Explains why floating point representation produces NaN, Inf, and silent underflow/overflow by showing memory layout and examples where subtraction of near-equals loses all precision, multiplication of many probabilities underflows to zero, and naive matrix inversion destabilizes solutions. Demonstrates the LogAddExp trick (log-sum-exp) to add tiny probabilities, recommends avoiding numpy.linalg.inv and using LU decomposition and scipy.linalg.solve instead, and gives concrete failure counts and code-level remedies.

AI-written summary · about

  1. 0:00Intro
  2. 1:50What is a float
  3. 3:47What are approximations
  4. 5:23Underflow
  5. 9:36How often
  6. 10:31Log
  7. 11:29Log Probability
  8. 13:26Logarix
  9. 15:21Log probabilities
  10. 16:26Linear equations
  11. 19:26Solving linear equations
  12. 24:36Wrap up
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.