ML for Materials Science · Week 5 · Lecture 5

Classification and Tree Ensembles

Yes-or-no questions about materials: logistic regression, decision trees, random forests and boosting, and how to judge a classifier honestly.
Undergraduate course · 16 weeks
atomic size mismatch δ (%) mixing enthalpy (more negative ↓) glass formers?
Recap of lecture 4

Last time: a prediction with an error bar

1

Least squares = maximum likelihood when the noise is Gaussian. Ridge = the most probable weights under a Gaussian prior.

2

Gaussian process: a kernel \(k(\mathbf x,\mathbf x')\) gives a predictive mean and a variance; 95 % interval ≈ ±1.96σ.

3

Applicability domain: the error bar grows away from the training data. A large variance is a warning.

The recipe: choose a noise model → write the likelihood → minimize its negative log.

Gaussian noise → squared error (lecture 4)
yes/no labels → log loss (today)

What it left open

Every target so far was a number: a band gap, a formation energy. But many materials questions are yes or no: Is it stable? Is it a metal? Will it form a glass?

Today

We reuse the maximum-likelihood recipe of lecture 4 for yes/no labels (logistic regression), then learn models made of questions (trees), combine many of them (forests, boosting), and meet kernels again in the support vector machine.

A classifier should output a probability, not just a label: that is what we use to rank, screen and decide.
Why questions · answered at the end

Four puzzles for today

WHY 1

A stability classifier is 90 % accurate on a screening set. Why can it still be completely useless?

WHY 2

Why does an average of 200 deep trees beat each of its own trees, even though every tree sees the same kind of data?

WHY 3

Why do we train logistic regression with a logarithmic loss instead of the squared error we used for regression?

WHY 4

A tree learns "metal or not" from eight compounds. Why does it call NiO a metal, when NiO is an insulator?

Motivation · yes-or-no targets

Three classification problems we use today

Metal or non-metal?

Label y = 1 if the band gap is zero. Features: electronegativity difference Δχ, whether a transition metal is present. Worked by hand on 8 real compounds.

Stable or not? Ehull < 25 meV/atom

The cut from lecture 1 turns a number into a label: y = 1 means "likely synthesizable". Only about 1 in 10 candidates passes: an imbalanced problem.

Glass former or crystal?

Features: atomic size mismatch δ and mixing enthalpy ΔHmix. Inoue's empirical rules: large size mismatch and negative heat of mixing favour glass. Simulated data, labelled as such.

Why not linear regression on 0/1 labels? Its predictions run below 0 and above 1, and one extreme alloy tilts the whole line. We want an output that is a probability between 0 and 1.

Pieces of the metallic glass Vitreloy 4
Pieces of the metallic glass Vitreloy 4 (Zr–Ti–Cu–Ni–Be); cylinder diameter 1 cm.
Björn Gojdka, CC BY 3.0
Math primer · sigmoid, odds and the Bernoulli distribution

Squashing a score into a probability

1
Sigmoid: any score z becomes a number between 0 and 1:\[ \sigma(z) = \frac{1}{1+e^{-z}},\qquad \sigma(0)=0.5,\quad \sigma(-z) = 1-\sigma(z) \]
Large positive z → p near 1; large negative z → p near 0.
2
Derivative (quotient rule):\[ \sigma'(z) = \frac{e^{-z}}{(1+e^{-z})^2} = \sigma(z)\,\big(1-\sigma(z)\big) \]
Steepest at z = 0, where σ′ = 0.25. We need this for the gradient.
3
Inverse = log-odds: \( z = \ln\dfrac{p}{1-p} \). Odds p/(1−p): p = 0.8 means odds of 4 to 1.
So z is a score in "log-odds" units.
4
Bernoulli: a yes/no label with P(y = 1) = p has\[ P(y) = p^{\,y}(1-p)^{1-y},\quad y\in\{0,1\} \]
One formula: it gives p for y = 1 and 1 − p for y = 0.
score z p = σ(z)

What this tells us

A classifier first computes an ordinary linear score, then squashes it. The score z = 2 means p = 0.88; z = −2 means p = 0.12.

Derivation 1 · logistic regression from maximum likelihood

From the likelihood to the cross-entropy loss

1
Model: a linear score, squashed: \( p_i = P(y_i = 1\mid\mathbf x_i) = \sigma(\mathbf x_i^{\mathsf T}\mathbf w) \).
Same linear score as lecture 2; only the output changes.
2
One label (Bernoulli, primer step 4): \( P(y_i\mid\mathbf x_i) = p_i^{\,y_i}(1-p_i)^{1-y_i} \).
The probability the model gave to what really happened.
3
All n labels (independent) multiply; the log turns the product into a sum:\[ \ln \mathcal L(\mathbf w) = \sum_{i=1}^{n}\Big[\,y_i\ln p_i + (1-y_i)\ln(1-p_i)\Big] \]
A product of many small numbers underflows; a sum of logs does not.
4
Maximize the likelihood = minimize the average negative log:\[ L(\mathbf w) = -\frac1n\sum_{i=1}^{n}\Big[\,y_i\ln p_i + (1-y_i)\ln(1-p_i)\Big] \]
The cross-entropy or "log loss". Same recipe as lecture 4: Gaussian noise gave squared error.
predicted p, when the true label is y = 1 loss log loss −ln p squared (1 − p)²

Meaning of the loss

A confident wrong answer, p = 0.01 for a true glass former, costs −ln 0.01 = 4.6 in log loss but only 0.98 in squared error. Log loss punishes overconfidence hard.

Derivation 2 · the gradient of the log loss

The gradient is XT(p − y): error times feature

1
Loss of one example, derivative with respect to p:\[ \frac{\partial \ell_i}{\partial p_i} = -\frac{y_i}{p_i} + \frac{1-y_i}{1-p_i} = \frac{p_i - y_i}{p_i(1-p_i)} \]
Common denominator; the y p terms cancel.
2
Inner derivatives: \( \dfrac{\partial p_i}{\partial z_i} = p_i(1-p_i) \) (primer step 2) and \( \nabla_{\mathbf w} z_i = \mathbf x_i \) (lecture 1 rule).
zi = xiTw is linear in w.
3
Chain rule: the p(1 − p) factors cancel:\[ \nabla_{\mathbf w}\ell_i = \frac{p_i - y_i}{p_i(1-p_i)}\cdot p_i(1-p_i)\cdot\mathbf x_i = (p_i - y_i)\,\mathbf x_i \]
4
Average over n examples:\[ \nabla_{\mathbf w}L = \frac1n X^{\mathsf T}(\mathbf p - \mathbf y) \quad\text{vs. least squares}\quad \frac2n X^{\mathsf T}(X\mathbf w - \mathbf y) \]
No closed form (p is nonlinear in w), but L is convex: gradient descent finds the single minimum.

Sanity check · one compound by hand

w₀ = −1, w₁ = 2, x = 1, true y = 1: z = 1, p = σ(1) = 0.731, loss −ln 0.731 = 0.313. Gradient (p − y)[1, x] = [−0.269, −0.269]: a descent step raises both weights, so p moves toward 1. ✓

What the model learned

Each weight is the change in log-odds per unit of its feature. The boundary p = 0.5 is where xTw = 0: a straight line (a plane in d dimensions). It cannot make a corner unless you add features. Far from the data the sigmoid saturates at 0 or 1: the model is overconfident exactly where a GP would warn you.

Materials example 1 · glass-forming ability (simulated data)

Logistic regression draws one straight border

atomic size mismatch δ (%) mixing enthalpy ΔHmix (kJ/mol)
glasscrystalp = 0.5 bordertrue border (dashed)
\[ z = -9.58 + 0.674\,\delta - 0.156\,\Delta H_{\text{mix}} \]

Reading the weights: +1 % in δ multiplies the odds of glass by e0.674 = 1.96; ΔHmix 1 kJ/mol more negative multiplies them by e0.156 = 1.17.

model (160 training alloys)test accuracy
baseline: always "crystal"0.587
logistic regression0.816

What the model learned

Both trends of Inoue's rules, with the right signs. But a straight line cannot follow the corner of the true region: it cuts it off.

Decision trees · how a tree chooses its questions

Split where the children become purest

1
A tree asks yes/no questions about one feature at a time: "is Δχ < 1.7?" Each leaf predicts the fraction of class 1 among its training examples.
Axis-aligned cuts: easy to read, no scaling of features needed.
2
Impurity of a node with class fractions pk:\[ G = 1 - \sum_k p_k^2 \;\;(\text{Gini}),\qquad H = -\sum_k p_k\log_2 p_k \;\;(\text{entropy}) \]
Both are 0 for a pure node and largest for a 50 : 50 mix. Two classes: G = 2p(1 − p).
3
Best split = largest drop of the size-weighted impurity:\[ \Delta G = G_{\text{parent}} - \Big(\tfrac{n_L}{n}G_L + \tfrac{n_R}{n}G_R\Big) \]
Try every feature and every threshold between sorted values.
4
Repeat greedily in each child until the leaves are pure or a maximum depth is reached.
Greedy: the best split now, not the best tree overall.
fraction p of class 1 in the node impurity entropy H (bits) Gini G

Meaning

Impurity measures how mixed a node is. A good question sends metals one way and non-metals the other. Gini and entropy almost always pick the same split.

Worked problem 1 · by hand

The best first split for eight compounds

compoundΔχtransition metal?metal?
Si0.00nono
NiAl0.30yesyes
GaAs0.37nono
Cu₃Au0.64yesyes
TiN1.50yesyes
TiO₂ (rutile)1.90yesno
MgO2.13nono
NaCl2.23nono

Δχ = difference of Pauling electronegativities of the two elements. "Metal" = zero band gap.

Notice: TiN (metal) and TiO₂ (insulator) share the same metal. Only the anion, and so Δχ, tells them apart.

1
Parent, 3 metals of 8:\[ G = 1 - \big(\tfrac38\big)^2 - \big(\tfrac58\big)^2 = \tfrac{30}{64} = 0.469 \]
2
"Transition metal?" yes: 4 (3 metals + TiO₂), no: 4 (all non-metals):\[ G_{\text{yes}} = 1 - \tfrac{9}{16} - \tfrac{1}{16} = 0.375,\quad G_{\text{no}} = 0 \]\[ \tfrac48\cdot 0.375 + \tfrac48\cdot 0 = 0.1875 \]
3
Best Δχ threshold, "Δχ < 1.7?": left 5 (3 metals), right 3 (none):\[ G_L = 1 - 0.36 - 0.16 = 0.48,\quad \tfrac58\cdot 0.48 + 0 = 0.300 \]
All 7 thresholds checked; this one is the best Δχ split.
Choose "transition metal?": drop 0.469 − 0.188 = 0.281 > 0.169
Worked problem 1 · the finished tree

Two questions classify all eight, and then NiO arrives

contains a transition metal?8 compounds · G = 0.469 no yes non-metal (4/4)Si, GaAs, MgO, NaCl Δχ < 1.7 ?4 compounds · G = 0.375 yes no metal (3/3)NiAl, Cu₃Au, TiN non-metalTiO₂

What the model learned

"A transition-metal compound with small Δχ is metallic": true for these eight. It has never seen an insulator whose gap comes from electron correlation, and its two features cannot describe that physics.

Drill bit coated with gold-coloured titanium nitride
TiN-coated drill: the gold colour and metallic lustre of TiN come from its free electrons. Peter Binter, CC BY 3.0

Entropy check

Parent H = 0.954 bits. Information gain: "transition metal?" 0.549, best Δχ split only 0.348. Same choice as Gini.

A new compound: NiO

Contains Ni: yes. Δχ = 3.44 − 1.91 = 1.53 < 1.7: yes. Prediction: metal. Real NiO is an insulator with a gap of several eV.

Trees on the glass data · depth controls flexibility

A deep tree memorizes; its test accuracy falls

best possible (true probabilities) 0.896 maximum tree depth accuracy test (2000 alloys) training (160)
depthleavestraintest
120.7750.760
240.9190.891
5170.9630.860
8 (fully grown)231.0000.851

What the model learned

Depth 2 matches the physics: the true border is two cuts, "δ large" and "ΔHmix negative". Deeper trees carve boxes around single noisy alloys: high variance. Retrain on new data and the boxes move.

Here depth is read off the test curve only to illustrate; lecture 6 chooses it honestly with cross-validation.

Random forests · bagging plus feature subsampling

Grow many different deep trees, then average

1
Bootstrap: draw n training alloys with replacement.
Each tree sees a slightly different dataset (about 63 % unique alloys).
2
Grow a deep tree, but at every split try only a random subset of features (here 1 of the 2).
Stops all trees from asking the same first question: they become less alike.
3
Repeat B times (here B = 200).
Trees are independent of each other: grow them in parallel.
4
Average the predicted probabilities (or take a majority vote):\[ \hat p(\mathbf x) = \frac1B\sum_{b=1}^{B} \hat p_b(\mathbf x) \]
"Bagging" = bootstrap aggregating.
average single deep tree 0.849 number of trees B (log scale) test accuracy

What this shows

Single bootstrap trees score from 0.72 to 0.89 (mean 0.849). Their average reaches 0.888, without choosing any depth. Averaging removes the noisy boxes.

Derivation 3 · why averaging works

Variance of an average of correlated trees

1
Setup: each tree's prediction Tb at a point has variance σ²; two different trees have correlation ρ, so Cov(Tb, Tc) = ρσ².
The randomness comes from the bootstrap and the feature choices.
2
Variance of a sum = sum of all covariances:\[ \operatorname{Var}\Big(\frac1B\sum_b T_b\Big) = \frac{1}{B^2}\sum_{b}\sum_{c}\operatorname{Cov}(T_b,T_c) \]
3
Count the terms: B diagonal terms σ², and B(B − 1) off-diagonal terms ρσ²:\[ \frac{B\sigma^2 + B(B-1)\rho\sigma^2}{B^2} = \rho\sigma^2 + \frac{(1-\rho)\,\sigma^2}{B} \]
4
Sanity checks: ρ = 0 → σ²/B (independent trees); ρ = 1 → σ² (identical trees, no gain); B → ∞ → ρσ², a floor.
More trees never hurt; they only stop helping.
number of trees B variance / σ²

Meaning

Averaging only removes the uncorrelated part of the error. That is why a forest subsamples features: it lowers ρ. Our glass trees still have ρ ≈ 0.7, so the floor is 0.7σ².

Gradient boosting · fit what is still wrong

Boosting adds small trees, each fitted to the residuals

1
Start simple: f₀ = mean of y (for classification: the log-odds of the class fraction).
The baseline of lecture 1.
2
Residuals: ri = yi − f(xi). For squared loss this is minus the gradient.
For log loss it is yi − pi: the same error as in the logistic gradient.
3
Fit a small tree h(x) (depth 1–3) to the residuals, then update \( f \leftarrow f + \eta\, h \).
η < 1 (learning rate): take a careful step, like gradient descent.
4
Repeat for M rounds. Trees are built in sequence, each correcting the last.
Too many rounds overfit: M is a hyperparameter.
\[ f_M(\mathbf x) = f_0 + \eta\sum_{m=1}^{M} h_m(\mathbf x) \]

By hand: one round, η = 0.5

xyr₁ = y − 21stump hf₁r₂
110−11−1016−6
212−9−1016−4
3309+10264
43211+10266

Stump "x < 2.5?" predicts the mean residual on each side (−10, +10). Sum of squared residuals: 404 → 104.

Forests versus boosting

A forest averages deep, independent trees: it reduces variance. Boosting adds shallow trees one after another: it reduces bias. On the glass data, 200 rounds reach training accuracy 1.000 and test 0.873; the test peak was 0.893 at about 50 rounds.

Materials example 1 · all models on the same glass data (simulated)

The forest finds the corner by itself

atomic size mismatch δ (%) mixing enthalpy ΔHmix (kJ/mol)
modeltraintest
always "crystal" (baseline)0.5690.587
logistic regression0.8440.816
tree, fully grown1.0000.851
tree, depth 20.9190.891
random forest, 200 trees1.0000.888
gradient boosting, 200 rounds1.0000.873
true probabilities (ceiling)–0.896

What the model learned

The forest's probability map follows the corner, with a soft edge where labels are noisy. Training accuracy 1.000 means nothing here; only the test column counts. Outside the range of δ and ΔHmix it saw, every tree model predicts a constant: trees cannot extrapolate.

Support vector machines · briefly

The widest street between the classes

feature 1 feature 2
1
Labels ±1, boundary \( \mathbf w^{\mathsf T}\mathbf x + b = 0 \). Scale w so that the closest points have \( y_i(\mathbf w^{\mathsf T}\mathbf x_i + b) = 1 \).
Then the street has width 2/‖w‖.
2
Maximum margin:\[ \min_{\mathbf w,b}\ \tfrac12\|\mathbf w\|^2 \quad\text{s.t.}\quad y_i(\mathbf w^{\mathsf T}\mathbf x_i + b)\ge 1 \]
Only the points on the edge, the support vectors, fix the answer.
3
Soft margin: allow some points inside the street, at a cost C per unit of violation.
Small C: wide street, more mistakes allowed. Large C: narrow street.
4
Kernels: the solution needs only dot products xiTxj; replace them by k(xi, xj), e.g. the squared exponential kernel of lecture 4.
A curved border without writing new features.
Judging a classifier · materials example 2: stability screening (simulated)

The confusion matrix and the accuracy trap

Task: 1000 candidate compounds; 100 are stable (Ehull < 25 meV/atom, the positive class). A classifier gives each a probability; we call "stable" if p ≥ 0.5.

truly stable
truly unstable
predicted stable
TPtrue positive: found
FPfalse alarm: wasted DFT run
predicted unstable
FNmissed: a lost discovery
TNcorrectly rejected
\[ \text{precision} = \frac{TP}{TP+FP},\qquad \text{recall} = \frac{TP}{TP+FN} \]\[ F_1 = \frac{2\,\text{precision}\cdot\text{recall}}{\text{precision}+\text{recall}},\qquad \text{accuracy} = \frac{TP+TN}{\text{all}} \]

Precision: of the compounds we send to DFT or the lab, how many are really stable? Recall: of all stable compounds, how many did we find? F₁ is their harmonic mean: high only if both are high.

The accuracy trap

A "model" that always says "unstable" has TP = 0, recall 0, and accuracy 900/1000 = 0.90. Accuracy rewards ignoring the rare class.

Worked problem 2 · by hand

Precision, recall and F1 for the stability screen

truly stable (100)
truly unstable (900)
predicted stable
72TP
14FP
predicted unstable
28FN
886TN

Class imbalance · preview of lecture 6

With 1 positive in 10, report precision and recall (or a balanced accuracy), keep the class ratio equal in training and test splits (stratified splits), and consider class weights or a different threshold.

1
Precision \( = \dfrac{72}{72+14} = \dfrac{72}{86} = 0.837 \)
84 % of the compounds we send on are really stable.
2
Recall \( = \dfrac{72}{72+28} = \dfrac{72}{100} = 0.72 \)
We miss 28 of the 100 stable compounds.
3
F₁ \( = \dfrac{2\times0.837\times0.72}{0.837+0.72} = 0.774 \)
4
Accuracy \( = \dfrac{72+886}{1000} = 0.958 \), versus 0.900 for "always unstable".
Only 5.8 points better, yet this model finds 72 compounds and the trivial one finds none.
Judging a classifier · every threshold at once

The ROC curve and the area under it

random guessing, AUC = 0.5 false positive rate FP / (FP + TN) true positive rate = recall

ROC curve: lower the threshold from 1 to 0 and plot recall against the false positive rate. A perfect classifier goes straight up to (0, 1).

AUC = 0.971 = P(a random stable compound scores higher than a random unstable one)
thresholdprecisionrecallF₁
0.20.3640.950.526
0.50.8370.720.774
0.80.9090.300.451

Try it (outside the video)

threshold 0.50
—
Worked problem 3 · by hand

AUC by counting pairs

Given: classifier scores for 8 candidates. Stable (positive): 0.9, 0.7, 0.4. Unstable: 0.8, 0.5, 0.3, 0.2, 0.1. 3 × 5 = 15 stable–unstable pairs.

stable scoreunstable scores below itcorrect pairs
0.90.8, 0.5, 0.3, 0.2, 0.15
0.70.5, 0.3, 0.2, 0.1 (not 0.8)4
0.40.3, 0.2, 0.13
\[ \text{AUC} = \frac{5+4+3}{15} = \frac{12}{15} = 0.80 \]
false positive rate recall

Check and meaning

Sort by score and walk down: a stable compound steps up by 1/3, an unstable one steps right by 1/5. The shaded area is 0.80, the same as the pair count. AUC measures ranking, which is exactly what a screening campaign needs.

Lab 5 · this week in Colab

Classify glass formers and stable compounds

import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import roc_auc_score
from sklearn.metrics import classification_report
df = pd.read_csv("glass_forming.csv")
X, y = df[["delta", "dH_mix"]], df["glass"]
Xtr, Xte, ytr, yte = train_test_split(
    X, y, test_size=0.5, stratify=y, random_state=0)
for m in [LogisticRegression(),
          RandomForestClassifier(n_estimators=200)]:
    m.fit(Xtr, ytr)
    p = m.predict_proba(Xte)[:, 1]      # probabilities
    print(type(m).__name__, roc_auc_score(yte, p))
print(classification_report(yte, p >= 0.5))

Exercises

  • Code the Gini split of worked problem 1 and check 0.1875 and 0.300.
  • Grow trees of depth 1 to 10 on the glass data; plot training and test accuracy.
  • Stability set: label Ehull < 0.025 eV/atom; report precision, recall and F₁ at thresholds 0.3, 0.5, 0.7, and the ROC AUC.
  • Predict with the forest at δ = 20 %, far outside the data. What happens, and why?

Runs in Google Colab; no GPU needed. Data files and notebook are posted with this lecture.

Answers to the why questions

The four puzzles, solved

1 · 90 % accurate, useless

If 90 % of candidates are unstable, "always unstable" scores 0.90 and finds nothing. With imbalanced classes report recall, precision, F₁ or AUC. Our real model: accuracy 0.958, recall 0.72.

2 · Why 200 trees beat one

Variance of the average = ρσ² + (1 − ρ)σ²/B. Bootstrap samples and random features make the trees differ, so averaging cancels their individual noise: 0.849 per tree → 0.888 for the forest.

3 · Why a log loss

It is the negative log-likelihood of yes/no (Bernoulli) labels, as squared error is for Gaussian noise. It punishes confident mistakes (4.6 vs 0.98), is convex, and gives the simple gradient XT(p − y).

4 · NiO called a metal

The tree learned "transition metal and Δχ < 1.7 → metal" from eight compounds. NiO (Δχ 1.53) fits the rule, but its gap comes from electron correlation, absent from the features and the data.

Check your understanding · click a card to reveal

Concept check

Q1. A split sends 6 compounds (3 metals, 3 non-metals) left and 2 non-metals right. What is the weighted Gini impurity?
GL = 1 − 0.25 − 0.25 = 0.5, GR = 0. Weighted: 6/8 × 0.5 = 0.375.
Q2. A screen flags 160 compounds and finds 40 of the 50 stable ones. Precision and recall?
Recall = 40/50 = 0.80. Precision = 40/160 = 0.25: three of every four flagged compounds are false alarms.
Q3. The logistic weight of δ is 0.674 per %. How do the odds of glass change if δ grows by 2 %?
The log-odds grow by 2 × 0.674 = 1.35, so the odds multiply by e1.35 ≈ 3.85.
Q4. Why does averaging 100 copies of the same tree not help?
Identical trees have ρ = 1, so the variance stays σ². A forest needs bootstrap samples and random features to make the trees differ.
Wrap-up

Summary and next lecture

1
Logistic regression: p = σ(xTw); maximum likelihood gives the cross-entropy loss and the gradient XT(p − y)/n. Linear border; weights = log-odds per unit.
2
Trees split greedily to reduce Gini or entropy. Readable, no scaling needed, but deep trees have high variance and no tree extrapolates.
3
Forests average decorrelated deep trees: variance ρσ² + (1 − ρ)σ²/B. Boosting adds small trees fitted to residuals: lowers bias, can overfit.
4
SVM: widest margin 2/‖w‖, support vectors, kernels as in lecture 4.
5
Judge classifiers with the confusion matrix: precision, recall, F₁, ROC and AUC. Accuracy misleads when one class is rare.

This week

Lab 5: logistic regression, trees and forests on glass formers; precision, recall and AUC for a stability screen.

Next lecture · Honest validation and data quality

Today we read the best tree depth off the test set, which is cheating. Next week: k-fold and nested cross-validation, grouped splits by chemical family, data leakage, and stratified splits for imbalanced classes. Problem set 2 is handed out.

Output probabilities, judge them with the metric that matches the decision, and keep the simplest model that clearly beats the baseline on unseen data.
References and image credits

Further reading

Reading for this week

  • G. James, D. Witten, T. Hastie, R. Tibshirani, J. Taylor, An Introduction to Statistical Learning with Applications in Python, Springer (2023): Ch. 4 (classification), Ch. 8 (tree-based methods), Ch. 9 (support vector machines).
  • K. P. Murphy, Probabilistic Machine Learning: An Introduction, MIT Press (2022): logistic regression; trees, forests, bagging and boosting.
  • A. Géron, Hands-On Machine Learning, 3rd ed., O'Reilly (2022): classification, decision trees, ensemble learning and random forests, SVMs.
  • S. Sandfeld, Materials Data Science, Springer (2024): classification chapters.
  • L. Breiman, "Random forests," Machine Learning 45, 5 (2001).
  • J. H. Friedman, "Greedy function approximation: a gradient boosting machine," Ann. Statist. 29, 1189 (2001).
  • A. Inoue, "Stabilization of metallic supercooled liquid and bulk amorphous alloys," Acta Mater. 48, 279 (2000) (empirical rules for glass formation).

Image credits (Wikimedia Commons)

  • Metallic glass Vitreloy 4 pieces: Björn Gojdka, CC BY 3.0 — File page
  • Titanium nitride coated drill: Peter Binter, CC BY 3.0 — File page

All schematics and plots were drawn for this course. The glass-forming and stability-screening data are simulated (generator and seeds in data/lecture05_*.js); the SVM points are illustrative. Electronegativities: Pauling scale. Metal/non-metal labels of the eight compounds are standard textbook facts.