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 and Scaling Laws3 / 4

Chapter 053 / 4

Pretraining Objectives and 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)

Complete the starter code in the editor. Any correct approach is accepted.

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