class_docstr: The early stopping logic.
docstr: Infer remaining default values.
docstr_tok: ["Infer","remaining","default","values","."]
code: def __post_init__(self):
      """Infer remaining default values."""
      self.remaining_patience = self.patience
      self.best_metric = (
          float("-inf") if self.larger_is_better else float("+inf")
      )
  
imports: import dataclasses
  import logging
  import math
  import pathlib
  from dataclasses import dataclass
  from typing import Any, Callable, List, Mapping, Optional, Union
  from uuid import uuid4
  import torch
  from .stopper import Stopper
  from ..constants import PYKEEN_CHECKPOINTS
  from ..evaluation import Evaluator
  from ..models import Model
  from ..trackers import ResultTracker
  from ..triples import CoreTriplesFactory
  from ..utils import fix_dataclass_init_docs
label_desc: Use image node_id 1 for calling the EarlyStoppingLogic obj's underlying member method code with example usage: obj.__post_init__() without return types