scglue.models.scglue.SCGLUETrainer.format_data
- SCGLUETrainer.format_data(data)[source]
Format data tensors :rtype:
typing.Tuple[typing.Mapping[str,torch.Tensor],typing.Mapping[str,torch.Tensor],typing.Mapping[str,torch.Tensor],typing.Mapping[str,torch.Tensor],typing.Mapping[str,torch.Tensor],typing.Mapping[str,torch.Tensor],torch.Tensor,torch.Tensor,torch.Tensor]Note
The data dataset should contain data arrays for each modality, followed by alternative input arrays for each modality, in the same order as modality keys of the network.