MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / reg_loss

Method reg_loss

utility.py:176–180  ·  view source on GitHub ↗
(self, reg_weights=1e-2)

Source from the content-addressed store, hash-verified

174 return para_new
175
176 def reg_loss(self, reg_weights=1e-2):
177 loss_1 = reg_weights * self.array.norm(2)
178 loss_2 = reg_weights * self.index.norm(2)
179
180 return loss_1 + loss_2

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected