Fit L(N,D)=E+A/Nα+B/DβL(N,D)=E+A/N^{\alpha}+B/D^{\beta} to a synthetic (N,D,loss)(N,D,\text{loss}) grid via least

Pretraining Objectives & Scaling Laws3 / 4

Chapter 053 / 4

Pretraining Objectives & Scaling Laws

Fit L(N,D)=E+A/Nα+B/DβL(N,D)=E+A/N^{\alpha}+B/D^{\beta} to a synthetic (N,D,loss)(N,D,\text{loss}) grid via least

Hard

Fit L(N,D)=E+A/Nα+B/DβL(N,D)=E+A/N^{\alpha}+B/D^{\beta} to a synthetic (N,D,loss)(N,D,\text{loss}) grid via least squares in log space.

Target interface
make_synthetic(seed=0)

Implement the function/class skeleton in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.