MCPcopy Create free account
hub / github.com/RUCDM/KB4Rec / __init__

Method __init__

Projects/UPGAN/code/util/Regularization.py:9–24  ·  view source on GitHub ↗

:param model 模型 :param weight_decay:正则化参数 :param p: 范数计算中的幂指数值,默认求2范数, 当p=0为L2正则化,p=1为L1正则化

(self, model, weight_decay, p=2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

get_weightMethod · 0.95
weight_infoMethod · 0.95

Tested by

no test coverage detected