MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/openevolve / objective

Function objective

examples/sldbench/init_program.py:43–47  ·  view source on GitHub ↗
(flat_params)

Source from the content-addressed store, hash-verified

41 init = np.ones((T, P))
42
43 def objective(flat_params):
44 params = flat_params.reshape(T, P)
45 pred = scaling_law_func(X, params) # (N, T)
46 mse = np.mean((pred - y2d) ** 2)
47 return mse
48
49 result = minimize(objective, init.ravel(), method='BFGS')
50 params_opt = result.x.reshape(T, P) if result.success else init

Callers

nothing calls this directly

Calls 1

scaling_law_funcFunction · 0.85

Tested by

no test coverage detected