LRDataset
- class jlpy.pytorch.base.linear_regression.base_impl.LRDataset
Bases:
Dataset[tuple[Tensor,Tensor]]Training dataset or validation dataset for the linear regression.
Methods
Construct a class instance.
Collate batch input to output without any changes.
- static custom_collate(batch: tuple[Tensor, Tensor]) tuple[Tensor, Tensor]
Collate batch input to output without any changes.
- Default collate:
Merge a list of one element from the dataset to a Tensor collection format.
- Custom collate:
If there is a way to load batched samplers from database, bypass the default collate method.