MCPcopy Create free account
hub / github.com/apple/ml-pointersect / validation_step

Method validation_step

cdslib/core/script/base_train.py:1132–1142  ·  view source on GitHub ↗

One training step. Return a dictionary that will be passed to logging.

(
            self,
            epoch: int,
            bidx: int,
            batch: T.Any,
    )

Source from the content-addressed store, hash-verified

1130 @customer
1131 @abstractmethod
1132 def validation_step(
1133 self,
1134 epoch: int,
1135 bidx: int,
1136 batch: T.Any,
1137 ) -> T.Dict[str, T.Any]:
1138 """One training step.
1139
1140 Return a dictionary that will be passed to logging.
1141 """
1142 raise NotImplementedError
1143
1144 @customer
1145 def visualize_validation_step(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected