MCPcopy Create free account
hub / github.com/QwenLM/ParScale / objective_function

Function objective_function

parametric_fit.py:26–28  ·  view source on GitHub ↗
(params)

Source from the content-addressed store, hash-verified

24 return E + (A * 1e9 / (param_list * (np.log(p_list) * k + 1))) ** alpha
25
26 def objective_function(params):
27 pred = pred_loss(params)
28 return huber_loss(np.log(loss_list), np.log(pred))
29
30 best_param = None
31 best_func = 1000000

Callers

nothing calls this directly

Calls 2

pred_lossFunction · 0.85
huber_lossFunction · 0.85

Tested by

no test coverage detected