示例#1
0
 def pred_step(
     self,
     x: tp.Any,
     states: types.States,
     initializing: bool,
     training: bool,
 ) -> PredStep:
     raise types.MissingMethod()
示例#2
0
 def init_step(
     self,
     x: tp.Any,
     y_true: tp.Any,
     sample_weight: tp.Optional[np.ndarray],
     class_weight: tp.Optional[np.ndarray],
     states: types.States,
 ) -> types.States:
     raise types.MissingMethod()
示例#3
0
 def train_step(
     self,
     x: tp.Any,
     y_true: tp.Any,
     sample_weight: tp.Optional[np.ndarray],
     class_weight: tp.Optional[np.ndarray],
     states: types.States,
     initializing: bool,
     training: bool,
 ) -> TrainStep:
     raise types.MissingMethod()
示例#4
0
 def summary_step(
     self,
     x: tp.Any,
     states: types.States,
 ) -> tp.List[types.SummaryTableEntry]:
     raise types.MissingMethod()
示例#5
0
 def train_step(self, *args, **kwargs):
     raise types.MissingMethod()
示例#6
0
 def reset_metrics(self) -> None:
     raise types.MissingMethod()
示例#7
0
 def train_step(
     self: M,
     inputs: tp.Any,
     labels: tp.Mapping[str, tp.Any],
 ) -> TrainStepOutput[M]:
     raise types.MissingMethod()
示例#8
0
 def grad_step(
     self: M,
     inputs: tp.Any,
     labels: tp.Mapping[str, tp.Any],
 ) -> GradStepOutput[M]:
     raise types.MissingMethod()
示例#9
0
 def pred_step(
     self: M,
     inputs: tp.Any,
 ) -> PredStepOutput[M]:
     raise types.MissingMethod()
示例#10
0
 def init_step(
     self: M,
     key: jnp.ndarray,
     inputs: tp.Any,
 ) -> M:
     raise types.MissingMethod()