FP for Data Science For Loops Considered Harmful
summary
Argues that using static types and immutability prevents whole classes of bugs (matrix-dimension and unit mismatches become compiler errors), replaces brittle for-loops with map and fold for scale-invariant code that runs the same on a laptop or a Spark cluster, and models effects as ADTs/monads so functions are total and testable. Shows Python/Scala examples, sketches a free monad DSL that swaps interpreters for scikit-learn, TensorFlow or Spark.
AI-written summary · about
chapters (12)
- 0:00Introduction and motivation
- 2:06Audience engagement questions
- 3:50Key FP concepts explained
- 7:47Benefits of FP for data science
- 10:18Python vs functional trade-offs
- 12:05Parallelism in data pipelines
- 13:07Correctness through FP
- 15:16Expressiveness in functions
- 16:23Algebraic properties in code
- 17:07Compositionality in ML
- 18:32FP in neural networks
- 19:35Call to embrace FP
related talks
40mFunctional Programming for Machine Learning and Data Pipelines
01h 44mFunctional Programming: Technical Reasons to Adapt
45mFP: The Good, the Bad and the Ugly
47mKeeping the fun in Apache Spark Datasets and FP
01h 00mWhat The Functional Programming
27mFunctional Programming for Pythonistas
59mFunctional Programming for Machine Learning Panel
44mFunctional Programming You Already Know
