Skip to content

Machine Learning

Machine learning sits at an unusual epistemic intersection. Unlike pure mathematics (which discovers necessary truths) or pure empiricism (which catalogs particular facts), ML is fundamentally about building predictive models from finite data under conditions of uncertainty. This creates a unique discipline: systematic thinking about generalization itself.

The field's core insight is that pattern recognition always involves a tradeoff between fitting known data and predicting new data. This is not a machine-specific problem - it applies to any learning system, biological or artificial, human or organizational. Every time you learn from experience, you face the same fundamental challenge: distinguishing signal from noise, generalizing without overgeneralizing, updating beliefs without overfitting to recent events.

ML's value as a source of reasoning tools comes from its forced confrontation with these tradeoffs. Unlike humans, who can rationalize away prediction failures, ML systems fail visibly and measurably. This creates strong evolutionary pressure toward tools that actually work. The field has spent decades formalizing intuitions about learning that other disciplines leave vague.

What survives even when specific algorithms fail? The meta-level reasoning about data, features, validation, and generalization. These tools don't depend on neural networks being "right" models of intelligence - they're about the structure of inductive inference itself. Whether you're training a classifier, diagnosing a patient, hiring employees, or developing personal habits, you're doing approximate pattern matching from limited examples. ML has thought harder about this problem than almost any other field.


Foundational Tools (Core Learning Primitives)

These tools address universal problems in learning from data - they work across virtually any domain where you're trying to generalize from examples.

Structural Tools (Understanding Model Architecture)

These tools help you reason about how to structure models and representations, going beyond simple pattern matching to system design.

Dynamic Tools (Reasoning About Learning Processes)

These tools address how models change during training and how to diagnose and fix learning failures.

Applied Tools (Strategic Decision-Making)

These tools guide high-level decisions about when and how to apply ML, and what to optimize for.


Quick Reference

Decision Type -> Tool Mapping

When you need to... Use these tools
Evaluate if a model/belief will generalize Train-Test Separation, Cross-Validation
Diagnose why predictions are failing Bias-Variance Tradeoff, Learning Curves
Decide what to measure or track Feature Engineering vs. Learning, Curse of Dimensionality
Prevent overfitting to recent events Regularization, Data Augmentation
Handle rare but important events Class Imbalance and Base Rates, Precision vs. Recall
Make decisions with limited data Transfer Learning, Ensemble Methods
Optimize complex systems Gradient Descent (Local Optima), Online vs. Batch Learning
Choose between simple and complex approaches Interpretability vs. Performance, Regularization
Combine multiple perspectives Ensemble Methods
Adapt to changing environments Online Learning

Suggested Reading Path

  1. Best entry point: Domingos (2012), "A Few Useful Things to Know About Machine Learning," Communications of the ACM Accessible overview of core ML insights in 12 pages. Covers most Tier 1 tools with minimal math.

  2. Deepening understanding: James, Witten, Hastie & Tibshirani, An Introduction to Statistical Learning (2021) Comprehensive introduction with R code examples. Covers all Tier 1-2 tools with clear explanations and practical exercises.

  3. Advanced fundamentals: Hastie, Tibshirani & Friedman, The Elements of Statistical Learning (2009) Rigorous mathematical treatment. The canonical reference for understanding why these tools work, not just how to apply them.

  4. Deep learning perspective: Goodfellow, Bengio & Courville, Deep Learning (2016) Modern neural network approach. Covers Tier 2-3 tools in the context of representation learning and optimization.

  5. Specialized topics: Murphy, Machine Learning: A Probabilistic Perspective (2012) Encyclopedic coverage with Bayesian framing. Best for deep dives into specific tools and their theoretical foundations.


Usage Notes

Domain of Applicability

These tools work best for problems with:

  • Repeated instances: You can collect multiple examples of the phenomenon
  • Measurable outcomes: You can verify whether predictions were correct
  • Stable patterns: The underlying relationships don't change faster than you can learn
  • Quantifiable features: You can represent relevant information numerically or categorically

They struggle with:

  • One-off decisions: No training data exists (though transfer learning can help)
  • Unmeasurable outcomes: You never learn if predictions were right
  • Rapidly shifting environments: Patterns change faster than learning cycles
  • Unquantifiable features: Critical information resists formalization

Limitations

What these tools cannot do: - Replace domain expertise: ML finds patterns in the features you provide; it doesn't know what matters - Establish causation: Predictive accuracy doesn't imply causal understanding - Handle distribution shift without retraining: Models fail when deployment data differs from training data - Optimize what you don't measure: If important outcomes aren't in the training signal, the model won't optimize for them

Ethical considerations: - Historical data often encodes historical biases; optimizing for past patterns can perpetuate injustice - Optimizing proxies (measurable correlates) often degrades the true goal (Goodhart's Law) - Black box models can launder bias behind technical opacity - Prediction is not determinism - probabilistic forecasts shouldn't be treated as certain futures

Composition

Tools that work well together: - Train-Test Separation + Cross-Validation: Use cross-validation during development, final test set for ultimate evaluation - Bias-Variance Tradeoff + Regularization + Learning Curves: Diagnose overfitting, apply regularization, verify improvement with learning curves - Feature Engineering + Transfer Learning: Use pre-trained models for feature extraction, then apply domain-specific engineering - Ensemble Methods + Cross-Validation: Use cross-validation to train diverse ensemble members

Substitutable tools: - Regularization vs. Early Stopping: Both reduce overfitting but through different mechanisms - Cross-Validation vs. Separate Validation Set: Same goal (honest performance estimation), different data efficiency tradeoffs - Feature Engineering vs. Feature Learning: Different strategies for the same problem (representation)

Integration with Other Domains

Connects to: - Statistics: ML is applied statistics focused on prediction over inference - Optimization: Most ML reduces to optimization problems (find parameters minimizing loss) - Information Theory: Foundations for understanding generalization, compression, and learning - Causal Inference: ML provides prediction; causal methods provide explanation and intervention - Decision Theory: ML outputs predictions; decision theory converts predictions to actions under uncertainty

Key distinctions: - vs. Scientific Modeling: ML optimizes prediction; science optimizes explanation and understanding - vs. Expert Systems: ML learns from data; expert systems encode human knowledge - vs. Traditional Programming: ML infers programs from examples; programming specifies programs directly