Api
BERTMLMLossWithReductionNoForward
基类:BERTMLMLossWithReduction
源代码在 bionemo/geneformer/api.py 中
38 39 40 41 42 43 44 45 46 47 | |
__init__(validation_step=False, val_drop_last=True, send_train_output=False, send_val_output=False)
与 BERTMLMLossWithReduction 相同,但默认情况下设置 send_val_output=False,因为我们不使用困惑度。
源代码在 bionemo/geneformer/api.py 中
39 40 41 42 43 44 45 46 47 | |
FineTuneSeqLenBioBertConfig dataclass
基类:BioBertConfig[MegatronBioBertFineTuneSeqLengthModel, SequenceLengthRMSEPlusBERTMLMLossWithReduction]、IOMixinWithGettersSetters
BioBert 微调序列长度模型配置。
源代码在 bionemo/geneformer/model/finetune_token_regressor.py 中
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | |
get_loss_reduction_class()
损失函数类型。
源代码在 bionemo/geneformer/model/finetune_token_regressor.py 中
220 221 222 | |
GeneformerConfig dataclass
基类:BioBertConfig[GeneformerModel, MegatronLossType]、IOMixinWithGettersSetters
geneformer 配置。
geneformer 配置覆盖父配置,并添加叶级 iomixin,请不要直接从此继承,因为您的参数可能会被静默重置为此方法的参数。
源代码在 bionemo/geneformer/api.py 中
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |