MCPcopy Index your code
hub / github.com/JetBrains-Research/code2seq / validation_step

Method validation_step

code2seq/model/code2class.py:73–74  ·  view source on GitHub ↗
(self, batch: BatchedLabeledPathContext, batch_idx: int)

Source from the content-addressed store, hash-verified

71 return result["train/loss"]
72
73 def validation_step(self, batch: BatchedLabeledPathContext, batch_idx: int) -> Dict: # type: ignore
74 return self._shared_step(batch, "val")
75
76 def test_step(self, batch: BatchedLabeledPathContext, batch_idx: int) -> Dict: # type: ignore
77 return self._shared_step(batch, "test")

Callers

nothing calls this directly

Calls 1

_shared_stepMethod · 0.95

Tested by

no test coverage detected