Logarithms for AI: Keep Tiny Probability Products from Vanishing
Learn logarithms as inverse powers, derive the product-to-sum laws, and use NumPy log scores to distinguish probability products that float64 rounds to zero.
Category
8articlesin this category.
Learn logarithms as inverse powers, derive the product-to-sum laws, and use NumPy log scores to distinguish probability products that float64 rounds to zero.
Learn exponent laws and roots, then use a log-scale explorer and NumPy to see why doubled model dimensions or context can create four times as many quantities.
Learn sigma and product notation, expand bounds into loops, and use NumPy sums and means to turn per-example errors into a mean squared error objective.
Learn to read tensor subscripts, translate batch-token-feature addresses into NumPy, and catch valid-looking axis mistakes in AI code.
Learn sets, membership, union, intersection, and partitions by finding and fixing overlap in an AI training, validation, and test split.
Learn how domains and codomains specify valid model inputs and promised output types, then diagnose shape, range, and undefined-operation failures.
Move from variables to functions: evaluate input-rule-output mappings, compose simple calculations, and see why one model can process many examples.
Learn to read model equations by separating variable names from their current values, then trace inputs, parameters, and outputs through a tiny scoring model.