Skip to content

Commit cf141df

Browse files
committed
ML-PC: cascade week summaries +1 after Week-7 cancellation (week7 cancelled; buffer dropped; week14 = reflection)
1 parent 8a22821 commit cf141df

8 files changed

Lines changed: 262 additions & 259 deletions

week10_summary.md

Lines changed: 36 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,50 @@
1-
# Week 10 Summary: Transformers for materials characterization
1+
# Week 10 Summary: ML for characterization signals
22

33
## Cross-Book Summary
44

5-
### 1. Why Attention for Materials
6-
- **Long-range correlations:** Many characterization signals (diffraction, micrograph stacks) have dependencies that exceed practical CNN receptive fields.
7-
- **Self-attention:** Lets every token attend to every other token directly, capturing global structure in one layer.
5+
### 1. Clustering Spectral Data
6+
- **K-Means:** Groups similar spectra (XRD/EDS) to identify distinct phases.
7+
- **Mini-Batch K-Means:** Speeds up high-throughput characterization.
8+
- **t-SNE:** Projects high-dimensional spectra to 2D to reveal outliers/relationships.
89

9-
### 2. The Transformer Toolkit
10-
- **Scaled dot-product attention:** The core operation and its O(L²) cost.
11-
- **Vision Transformer (ViT):** Patchify → embed → encode → classify; transformers applied to image-like data.
12-
- **Flash Attention:** A fused kernel that makes long sequences tractable without materialising the L×L matrix.
10+
### 2. Autoencoders for Signal Processing
11+
- **Latent Representations:** Compresses spectra to essential physical information.
12+
- **Denoising:** Reconstructs clean signals from noisy inputs without blurring.
13+
- **Non-linear Compression:** Outperforms PCA for complex spectral libraries.
1314

14-
### 3. Materials Applications
15-
- **ViT on 4D-STEM:** Diffraction patches become a token sequence for a ViT encoder.
16-
- **Cross-attention across LPBF layers:** Long-stack micrograph context for additive-manufacturing monitoring.
17-
18-
### 4. Scaling Alternatives (Awareness Only)
19-
- **Mamba / structured state-space models (SSMs):** O(L) compute, constant memory; competitive on long sequences. Cross-reference the Week 7 time-series deck.
15+
### 3. Scientific Integrity in ML
16+
- **Peak Preservation:** ML must assist, not invent or smooth away real physics.
2017

2118
## 90-Minute Lecture Strategy
2219

23-
### Part 1: Where We Are
24-
- Recap of Week 9 (characterization signals) and why we now need attention.
20+
### Part 1: High-Dimensional Signals
21+
- Digital footprint: XRD, EDS, EELS, Raman.
22+
- Manual vs. automated peak-picking.
23+
- Vector spectrum representation.
2524

26-
### Part 2: Why Attention
27-
- Long-range correlations exceed CNN receptive fields.
25+
### Part 2: Clustering Structure
26+
- K-Means algorithm.
27+
- Elbow Method for phase counting.
28+
- Ternary alloy mapping.
2829

29-
### Part 3: Mechanics
30-
- Scaled dot-product attention: the formula and the cost.
31-
- ViT in five lines: patchify, embed, encode, classify.
32-
- Flash Attention: the kernel that makes long sequences tractable.
30+
### Part 3: Visualizing the Unseen
31+
- t-SNE Stochastic Proximity.
32+
- Hidden relationships.
33+
- t-SNE distance pitfalls.
3334

34-
### Part 4: Materials Applications
35-
- ViT on 4D-STEM diffraction.
36-
- Cross-attention across LPBF layer stacks.
35+
### Part 4: Autoencoders & Denoising
36+
- Encoder-Bottleneck-Decoder.
37+
- Denoising characterization signals.
38+
- Bottlenecks as physical descriptors.
3739

38-
### Part 5: Practice and Pitfalls
39-
- `nn.MultiheadAttention` vs `F.scaled_dot_product_attention`.
40-
- Scaling alternatives (Mamba / SSMs) — mention only.
41-
- Anti-patterns: what *not* to do.
42-
- Exercise preview.
40+
### Part 5: Data to Discovery
41+
- Real-time spectral analysis.
42+
- Physical consistency in ML.
43+
- Automated pipelines.
4344

4445
## Quarto Website Update (Summary)
45-
**Summary for ML-PC Week 10:**
46-
- Motivates self-attention for long-range structure in characterization data.
47-
- Covers scaled dot-product attention, the Vision Transformer, and Flash Attention.
48-
- Applies transformers to 4D-STEM diffraction and LPBF layer-stack context.
49-
- Notes Mamba / state-space models as scaling alternatives, and when not to reach for a transformer.
46+
**Summary for ML-PC Week 10:**
47+
- Processes high-dimensional Characterization Signals (XRD, EDS).
48+
- Employs K-Means and t-SNE for automated phase identification.
49+
- Uses Autoencoders for latent space compression and denoising.
50+
- Enhances high-throughput data analysis while preserving physics.

week11_summary.md

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,49 @@
1-
# Week 11 Summary: Uncertainty-aware regression & Gaussian Processes
1+
# Week 11 Summary: Transformers for materials characterization
22

33
## Cross-Book Summary
44

5-
### 1. Knowing what you don't know
6-
- **Aleatoric vs. Epistemic:** Inherent physical noise vs. model ignorance.
7-
- **Overconfidence Danger:** Point estimates fail safely in unknown regimes; uncertainty metrics are crucial.
5+
### 1. Why Attention for Materials
6+
- **Long-range correlations:** Many characterization signals (diffraction, micrograph stacks) have dependencies that exceed practical CNN receptive fields.
7+
- **Self-attention:** Lets every token attend to every other token directly, capturing global structure in one layer.
88

9-
### 2. Gaussian Processes (GPs)
10-
- **Distribution over Functions:** GP yields posterior mean and variance (uncertainty).
11-
- **Kernels as Physical Priors:** Encodes assumptions about data smoothness/scale.
12-
- **Non-Parametric Nature:** Scales with data size, ideal for small, high-quality materials datasets.
9+
### 2. The Transformer Toolkit
10+
- **Scaled dot-product attention:** The core operation and its O(L²) cost.
11+
- **Vision Transformer (ViT):** Patchify → embed → encode → classify; transformers applied to image-like data.
12+
- **Flash Attention:** A fused kernel that makes long sequences tractable without materialising the L×L matrix.
1313

14-
### 3. GP-Based Process Maps
15-
- **Confidence Ribbons:** Visualize reliability to guide further experiments.
16-
- **Kriging:** Interpolates materials property surfaces using GP regression.
14+
### 3. Materials Applications
15+
- **ViT on 4D-STEM:** Diffraction patches become a token sequence for a ViT encoder.
16+
- **Cross-attention across LPBF layers:** Long-stack micrograph context for additive-manufacturing monitoring.
17+
18+
### 4. Scaling Alternatives (Awareness Only)
19+
- **Mamba / structured state-space models (SSMs):** O(L) compute, constant memory; competitive on long sequences. Cross-reference the Week 8 time-series deck.
1720

1821
## 90-Minute Lecture Strategy
1922

20-
### Part 1: Uncertainty in Science
21-
- Risk management in materials processing.
22-
- Visualizing distributions and error bars.
23+
### Part 1: Where We Are
24+
- Recap of Week 10 (characterization signals) and why we now need attention.
2325

24-
### Part 2: GP Fundamentals
25-
- Function vs. Parameter space.
26-
- Kernels and "Similarity".
27-
- Conditional Gaussians and Variance.
26+
### Part 2: Why Attention
27+
- Long-range correlations exceed CNN receptive fields.
2828

29-
### Part 3: GP Case Studies
30-
- Predicting tensile strength across parameters.
31-
- GP for Experimental Design.
32-
- Multi-Task GPs.
29+
### Part 3: Mechanics
30+
- Scaled dot-product attention: the formula and the cost.
31+
- ViT in five lines: patchify, embed, encode, classify.
32+
- Flash Attention: the kernel that makes long sequences tractable.
3333

34-
### Part 4: Advanced Probabilistic ML
35-
- Mixture Density Networks (MDNs).
36-
- Dropout as Bayesian approximation.
34+
### Part 4: Materials Applications
35+
- ViT on 4D-STEM diffraction.
36+
- Cross-attention across LPBF layer stacks.
3737

38-
### Part 5: Decision Making
39-
- Safe process windows via confidence intervals.
40-
- Building trustworthy models.
38+
### Part 5: Practice and Pitfalls
39+
- `nn.MultiheadAttention` vs `F.scaled_dot_product_attention`.
40+
- Scaling alternatives (Mamba / SSMs) — mention only.
41+
- Anti-patterns: what *not* to do.
42+
- Exercise preview.
4143

4244
## Quarto Website Update (Summary)
43-
**Summary for ML-PC Week 12:**
44-
- Introduces Probabilistic Machine Learning for uncertainty quantification.
45-
- Differentiates aleatoric (noise) from epistemic (ignorance) uncertainty.
46-
- Uses Gaussian Processes (GPs) for uncertainty-aware regression.
47-
- Applies confidence intervals to map robust process windows.
45+
**Summary for ML-PC Week 11:**
46+
- Motivates self-attention for long-range structure in characterization data.
47+
- Covers scaled dot-product attention, the Vision Transformer, and Flash Attention.
48+
- Applies transformers to 4D-STEM diffraction and LPBF layer-stack context.
49+
- Notes Mamba / state-space models as scaling alternatives, and when not to reach for a transformer.

week12_summary.md

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,47 @@
1-
# Week 12 Summary: Physics-informed and constrained ML
1+
# Week 12 Summary: Uncertainty-aware regression & Gaussian Processes
22

33
## Cross-Book Summary
44

5-
### 1. Physics-Informed Neural Networks (PINNs)
6-
- **Embedding Laws:** Enforce ODEs/PDEs via the loss function for physical consistency.
7-
- **Automatic Differentiation:** Exact derivative calculations enable NNs to evaluate physical equations.
8-
- **Boundary Conditions:** Methods like Lagaris substitution guarantee boundary compliance.
5+
### 1. Knowing what you don't know
6+
- **Aleatoric vs. Epistemic:** Inherent physical noise vs. model ignorance.
7+
- **Overconfidence Danger:** Point estimates fail safely in unknown regimes; uncertainty metrics are crucial.
98

10-
### 2. Governing Equation Discovery
11-
- **Dictionary-Based Regression:** Build a dictionary of candidate math functions.
12-
- **Sparse Identification:** Use regularized regression (Lasso) to discover physical laws from noisy data.
13-
- **Dimensional Reasoning:** Unit analysis ensures physically plausible discoveries.
9+
### 2. Gaussian Processes (GPs)
10+
- **Distribution over Functions:** GP yields posterior mean and variance (uncertainty).
11+
- **Kernels as Physical Priors:** Encodes assumptions about data smoothness/scale.
12+
- **Non-Parametric Nature:** Scales with data size, ideal for small, high-quality materials datasets.
1413

15-
### 3. Constraints in Materials Science
16-
- **Monotonicity:** Enforce required physical trends (e.g., hardness vs. alloying).
17-
- **Hybrid Modeling:** Combine physical "White-Box" models with data-driven "Black-Boxes" (Grey-Box).
14+
### 3. GP-Based Process Maps
15+
- **Confidence Ribbons:** Visualize reliability to guide further experiments.
16+
- **Kriging:** Interpolates materials property surfaces using GP regression.
1817

1918
## 90-Minute Lecture Strategy
2019

21-
### Part 1: Why Physics Matters
22-
- Limits of unconstrained Black-Box models.
23-
- Accurate but Physical models.
24-
- PINNs need less data.
20+
### Part 1: Uncertainty in Science
21+
- Risk management in materials processing.
22+
- Visualizing distributions and error bars.
2523

26-
### Part 2: Automatic Differentiation
27-
- GradientTape mechanics.
28-
- Derivatives as ML architecture components.
24+
### Part 2: GP Fundamentals
25+
- Function vs. Parameter space.
26+
- Kernels and "Similarity".
27+
- Conditional Gaussians and Variance.
2928

30-
### Part 3: Solving Physics with NNs
31-
- PINN Architectures: Data Loss + Physics Loss.
32-
- Enforcing Boundary Conditions.
33-
- 3D printing heat transfer case study.
29+
### Part 3: GP Case Studies
30+
- Predicting tensile strength across parameters.
31+
- GP for Experimental Design.
32+
- Multi-Task GPs.
3433

35-
### Part 4: Equation Discovery
36-
- Sparse Regression and candidate dictionaries.
37-
- Damped pendulum equation case study.
38-
- Unit Analysis search pruning.
34+
### Part 4: Advanced Probabilistic ML
35+
- Mixture Density Networks (MDNs).
36+
- Dropout as Bayesian approximation.
3937

40-
### Part 5: The Grey-Box Future
41-
- Hybrid architectures vs. FEA.
42-
- Building industrial trust.
38+
### Part 5: Decision Making
39+
- Safe process windows via confidence intervals.
40+
- Building trustworthy models.
4341

4442
## Quarto Website Update (Summary)
45-
**Summary for ML-PC Week 13:**
46-
- Combines neural networks with physical laws via Physics-Informed ML.
47-
- Introduces PINNs and automatic differentiation.
48-
- Details Governing Equation Discovery using sparse regression.
49-
- Applies physical constraints to build data-efficient Grey-Box models.
43+
**Summary for ML-PC Week 12:**
44+
- Introduces Probabilistic Machine Learning for uncertainty quantification.
45+
- Differentiates aleatoric (noise) from epistemic (ignorance) uncertainty.
46+
- Uses Gaussian Processes (GPs) for uncertainty-aware regression.
47+
- Applies confidence intervals to map robust process windows.

week13_summary.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,49 @@
1-
# Week 13 Summary: Integration, limits, and reflection
1+
# Week 13 Summary: Physics-informed and constrained ML
22

33
## Cross-Book Summary
44

5-
### 1. Explainability: Opening the Black Box
6-
- **Beyond Prediction:** "Why" builds industrial trust over just "what".
7-
- **Sensitivity Analysis:** Perturb inputs to find primary process drivers.
8-
- **Levels of Explanation:** Tailor explanations for managers, experts, and data scientists.
5+
### 1. Physics-Informed Neural Networks (PINNs)
6+
- **Embedding Laws:** Enforce ODEs/PDEs via the loss function for physical consistency.
7+
- **Automatic Differentiation:** Exact derivative calculations enable NNs to evaluate physical equations.
8+
- **Boundary Conditions:** Methods like Lagaris substitution guarantee boundary compliance.
99

10-
### 2. Causality and Semantics
11-
- **Causal Process Chains:** Shift from anomaly detection to early prediction.
12-
- **Ontologies:** Digitize semantic meaning (e.g., mapping variables to physical concepts) to enable algorithmic reasoning.
10+
### 2. Governing Equation Discovery
11+
- **Dictionary-Based Regression:** Build a dictionary of candidate math functions.
12+
- **Sparse Identification:** Use regularized regression (Lasso) to discover physical laws from noisy data.
13+
- **Dimensional Reasoning:** Unit analysis ensures physically plausible discoveries.
1314

14-
### 3. Limits of AI in Materials Science
15-
- **Data Bias:** Models trained only on "successes" cannot predict failures.
16-
- **AI Hallucinations:** Large models may generate physically impossible patterns.
17-
- **Expert's Role:** AI automates analysis, but human experts define questions and interpret final truths.
15+
### 3. Constraints in Materials Science
16+
- **Monotonicity:** Enforce required physical trends (e.g., hardness vs. alloying).
17+
- **Hybrid Modeling:** Combine physical "White-Box" models with data-driven "Black-Boxes" (Grey-Box).
1818

1919
## 90-Minute Lecture Strategy
2020

21-
### Part 1: Course Synthesis
22-
- Recap: Signal formation to PINNs.
23-
- AI-driven materials lifecycle.
21+
### Part 1: Why Physics Matters
22+
- Limits of unconstrained Black-Box models.
23+
- Accurate but Physical models.
24+
- PINNs need less data.
2425

25-
### Part 2: Explainable ML
26-
- The Black Box problem.
27-
- Sensitivity analysis (Perturbation theory).
28-
- Feature importance (SHAP/LIME).
26+
### Part 2: Automatic Differentiation
27+
- GradientTape mechanics.
28+
- Derivatives as ML architecture components.
2929

30-
### Part 3: Causality & Semantics
31-
- Causal graphs (Cause → Mechanism → Effect).
32-
- Detection vs. Prediction.
33-
- Materials Ontologies.
30+
### Part 3: Solving Physics with NNs
31+
- PINN Architectures: Data Loss + Physics Loss.
32+
- Enforcing Boundary Conditions.
33+
- 3D printing heat transfer case study.
3434

35-
### Part 4: Ethics and Limits
36-
- Representation and "Success" bias.
37-
- Dangers of over-extrapolation.
38-
- Environmental cost vs. PINN efficiency.
35+
### Part 4: Equation Discovery
36+
- Sparse Regression and candidate dictionaries.
37+
- Damped pendulum equation case study.
38+
- Unit Analysis search pruning.
3939

40-
### Part 5: Final Outlook
41-
- Self-driving labs.
42-
- Sustainable AI-driven discovery.
40+
### Part 5: The Grey-Box Future
41+
- Hybrid architectures vs. FEA.
42+
- Building industrial trust.
4343

4444
## Quarto Website Update (Summary)
45-
**Summary for ML-PC Week 14:**
46-
- Reflects on Explainability and Sensitivity Analysis to open black-box models.
47-
- Discusses Causality in process chains and Ontologies for semantic reasoning.
48-
- Critically assesses Data Bias and physical AI hallucinations.
49-
- Examines the evolving partnership between autonomous algorithms and human experts.
45+
**Summary for ML-PC Week 13:**
46+
- Combines neural networks with physical laws via Physics-Informed ML.
47+
- Introduces PINNs and automatic differentiation.
48+
- Details Governing Equation Discovery using sparse regression.
49+
- Applies physical constraints to build data-efficient Grey-Box models.

week14_summary.md

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,49 @@
1-
# Week 14 Summary: Buffer, review, and mini-project work
1+
# Week 14 Summary: Integration, limits, and reflection
22

3-
No new material. Reserved as a buffer to absorb schedule slippage from the Week 7 / Week 8 public-holiday self-study sessions, for review of difficult topics on request, and for mini-project consultation and presentations.
3+
## Cross-Book Summary
4+
5+
### 1. Explainability: Opening the Black Box
6+
- **Beyond Prediction:** "Why" builds industrial trust over just "what".
7+
- **Sensitivity Analysis:** Perturb inputs to find primary process drivers.
8+
- **Levels of Explanation:** Tailor explanations for managers, experts, and data scientists.
9+
10+
### 2. Causality and Semantics
11+
- **Causal Process Chains:** Shift from anomaly detection to early prediction.
12+
- **Ontologies:** Digitize semantic meaning (e.g., mapping variables to physical concepts) to enable algorithmic reasoning.
13+
14+
### 3. Limits of AI in Materials Science
15+
- **Data Bias:** Models trained only on "successes" cannot predict failures.
16+
- **AI Hallucinations:** Large models may generate physically impossible patterns.
17+
- **Expert's Role:** AI automates analysis, but human experts define questions and interpret final truths.
18+
19+
## 90-Minute Lecture Strategy
20+
21+
### Part 1: Course Synthesis
22+
- Recap: Signal formation to PINNs.
23+
- AI-driven materials lifecycle.
24+
25+
### Part 2: Explainable ML
26+
- The Black Box problem.
27+
- Sensitivity analysis (Perturbation theory).
28+
- Feature importance (SHAP/LIME).
29+
30+
### Part 3: Causality & Semantics
31+
- Causal graphs (Cause → Mechanism → Effect).
32+
- Detection vs. Prediction.
33+
- Materials Ontologies.
34+
35+
### Part 4: Ethics and Limits
36+
- Representation and "Success" bias.
37+
- Dangers of over-extrapolation.
38+
- Environmental cost vs. PINN efficiency.
39+
40+
### Part 5: Final Outlook
41+
- Self-driving labs.
42+
- Sustainable AI-driven discovery.
43+
44+
## Quarto Website Update (Summary)
45+
**Summary for ML-PC Week 14:**
46+
- Reflects on Explainability and Sensitivity Analysis to open black-box models.
47+
- Discusses Causality in process chains and Ontologies for semantic reasoning.
48+
- Critically assesses Data Bias and physical AI hallucinations.
49+
- Examines the evolving partnership between autonomous algorithms and human experts.

0 commit comments

Comments
 (0)