scglue.models.scglue.PairedSCGLUETrainer

class scglue.models.scglue.PairedSCGLUETrainer(net, lam_data=None, lam_kl=None, lam_graph=None, lam_align=None, lam_sup=None, lam_joint_cross=None, lam_real_cross=None, lam_cos=None, normalize_u=None, modality_weight=None, optim=None, lr=None, **kwargs)[源代码]

基类:SCGLUETrainer

Paired trainer for SCGLUE

参数:

方法

compute_losses

Compute loss functions

format_data

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]

属性

logger