Power-Law Fit for Scaling Laws
~12 mincode completion
Implement fit_power_law(N, L) returning the array [a, alpha].
Where this shows up
~12 min
••••••••••••••••
8 employers weight this skill
2 health and bio companies, 2 quant funds, 2 enterprise vendors, 1 AI product company, 1 frontier lab. Top match scores 87.
Python
import numpy as np
def fit_power_law(N, L):
"""
Least-squares fit of L = a * N**(-alpha) in log space.
Args:
N: array of model sizes, shape (m,), all positive
L: array of losses, shape (m,), all positive
Returns:
array [a, alpha]
"""
# YOUR CODE HERE
pass