scglue.models.scglue.SCGLUEModel.fit
- SCGLUEModel.fit(adatas, graph, neg_samples=10, val_split=0.1, data_batch_size=128, graph_batch_size=AUTO, align_burnin=AUTO, safe_burnin=True, max_epochs=AUTO, patience=AUTO, reduce_lr_patience=AUTO, wait_n_lrs=1, directory=None)[源代码]
Fit model on given datasets
- 参数:
adatas (
typing.Mapping
[str
,AnnData
]) – Datasets (indexed by modality name)graph (
Graph
) – Guidance graphneg_samples (
int
) – Number of negative samples for each edgeval_split (
float
) – Validation splitdata_batch_size (
int
) – Number of cells in each data minibatchgraph_batch_size (
int
) – Number of edges in each graph minibatchalign_burnin (
int
) – Number of epochs to wait before starting alignmentsafe_burnin (
bool
) – Whether to postpone learning rate scheduling and earlystopping until after the burnin stagemax_epochs (
int
) – Maximal number of epochspatience (
typing.Optional
[int
]) – Patience of early stoppingreduce_lr_patience (
typing.Optional
[int
]) – Patience to reduce learning ratewait_n_lrs (
int
) – Wait n learning rate scheduling events before starting early stoppingdirectory (
typing.Optional
[os.PathLike
]) – Directory to store checkpoints and tensorboard logs
- 返回类型: