Pretraining Objectives & Scaling Laws · Problem 3 of 4
Fit to a synthetic grid via least squares in log space.
Implement the function/class skeleton in the editor. Any correct approach is accepted.
import numpy as np
from scipy.special import logsumexp
from scipy.optimize import least_squares
def make_synthetic(seed=0):
raise NotImplementedError
def fit_scaling_law(N, D, L):
raise NotImplementedErrorReady when you are
Submit your solution and a structured review appears here — verdict, score, and concrete feedback. Any correct approach passes.
Fit to a synthetic grid via least squares in log space.
Implement the function/class skeleton in the editor. Any correct approach is accepted.