scvi.dataloaders.SemiSupervisedDataSplitter.from_argparse_args

classmethod SemiSupervisedDataSplitter.from_argparse_args(args, **kwargs)

Create an instance from CLI arguments.

Parameters
args : Namespace | ArgumentParserUnion[Namespace, ArgumentParser]

The parser or namespace to take arguments from. Only known arguments will be parsed and passed to the LightningDataModule.

**kwargs

Additional keyword arguments that may override ones in the parser or namespace. These must be valid DataModule arguments.

Example:

parser = ArgumentParser(add_help=False)
parser = LightningDataModule.add_argparse_args(parser)
module = LightningDataModule.from_argparse_args(args)