class_docstr: A PyTorch Lightning module for training a model with sLCWA training loop.
class_docstr_tok: ["A","PyTorch","Lightning","module","for","training","a","model","with","sLCWA","training","loop","."]
docstr: Initialize the lightning module.
  
  :param negative_sampler:
      the negative sampler, cf. :meth:`pykeen.triples.CoreTriplesFactory.create_slcwa_instances`
  :param negative_sampler_kwargs:
      keyword-based parameters passed to the negative sampler, cf.
      :meth:`pykeen.triples.CoreTriplesFactory.create_slcwa_instances`
  :param kwargs:
      additional keyword-based parameters passed to :meth:`LitModule.__init__`
docstr_tok: ["Initialize","the","lightning","module",".",":","param","negative_sampler",":","the","negative","sampler",",","cf",".",":","meth",":","`","pykeen.triples.CoreTriplesFactory.create_slcwa_instances","`",":","param","negative_sampler_kwargs",":","keyword-based","parameters","passed","to","the","negative","sampler",",","cf",".",":","meth",":","`","pykeen.triples.CoreTriplesFactory.create_slcwa_instances","`",":","param","kwargs",":","additional","keyword-based","parameters","passed","to",":","meth",":","`","LitModule.__init__","`"]
code: def __init__(
      self,
      *,
      negative_sampler: HintOrType[NegativeSampler] = None,
      negative_sampler_kwargs: OptionalKwargs = None,
      **kwargs,
  ):
      """
      Initialize the lightning module.
  
      :param negative_sampler:
          the negative sampler, cf. :meth:`pykeen.triples.CoreTriplesFactory.create_slcwa_instances`
      :param negative_sampler_kwargs:
          keyword-based parameters passed to the negative sampler, cf.
          :meth:`pykeen.triples.CoreTriplesFactory.create_slcwa_instances`
      :param kwargs:
          additional keyword-based parameters passed to :meth:`LitModule.__init__`
      """
      super().__init__(**kwargs)
      self.negative_sampler = negative_sampler
      self.negative_sampler_kwargs = negative_sampler_kwargs
  
imports: from abc import abstractmethod
  from typing import Optional
  import click
  import pytorch_lightning
  import torch
  import torch.utils.data
  from class_resolver import ClassResolver, HintOrType, OptionalKwargs
  from pykeen.datasets import dataset_resolver, get_dataset
  from pykeen.datasets.base import Dataset
  from pykeen.losses import Loss, loss_resolver
  from pykeen.models import Model, model_resolver
  from pykeen.models.cli import options
  from pykeen.optimizers import optimizer_resolver
  from pykeen.sampling import NegativeSampler
  from pykeen.training import LCWATrainingLoop, SLCWATrainingLoop
  from pykeen.triples.triples_factory import CoreTriplesFactory
  from pykeen.typing import InductiveMode, OneOrSequence
label_desc: Use image node_id 1 to create a new SLCWALitModule object from inherited base classes: LitModule with example: obj = SLCWALitModule()