Skip to content

Simplify PCDLit and PCDDataModule with hparams #55

@adosar

Description

@adosar

Thanks to self.save_hyperparameters() all init argument are available via self.hparams or the immutable self.hparams_initial. This means it is not necessary to use dataclass for reducing boilerplate.

Also, consider removing writing to hparams.yaml since this can take a long time if the model is large. See also:

Note

Care must be taken when using the LightningCLI because it seems that self.hparams will store the (un)instantiated object as dict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions