MCPcopy Create free account
hub / github.com/NineAbyss/ZeroG / get_loss

Method get_loss

code/model.py:268–273  ·  view source on GitHub ↗
(self, x, edge_index, edge_weigt=None, batch=None)

Source from the content-addressed store, hash-verified

266
267
268 def get_loss(self, x, edge_index, edge_weigt=None, batch=None):
269
270 mask_x, recon_x = self.forward(x, edge_index, edge_weigt, batch)
271 loss = sce_loss(mask_x, recon_x, alpha=2)
272
273 return loss
274
275 def embed(self, x, edge_index, edge_weigt=None, batch=None):
276

Callers

nothing calls this directly

Calls 2

forwardMethod · 0.95
sce_lossFunction · 0.90

Tested by

no test coverage detected