Skip to content

Commit

Permalink
Removed deprecated flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-diedrich committed Jan 27, 2024
1 parent 80f8ab1 commit 8436374
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions sccoral/model/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ def train(
self,
max_epochs: int = 500,
pretraining: bool = True,
use_gpu: None | bool = None,
accelerator: None | Literal["cpu", "gpu", "auto"] = "auto",
devices="auto",
validation_size: None | float = 0.1,
Expand Down Expand Up @@ -329,8 +328,6 @@ def train(
Maximum epochs during training
max_pretraining_epochs
Maximum epochs during pretraining. If `None`, same as max_epochs
use_gpu
Whether to use gpu. If `None` automatically detects gpu
accelerator
cpu/gpu/auto: auto automatically detects available devices
devices
Expand Down Expand Up @@ -405,7 +402,6 @@ def train(
training_plan=training_plan,
data_splitter=data_splitter,
max_epochs=max_epochs,
use_gpu=use_gpu,
accelerator=accelerator,
devices=devices,
**trainer_kwargs,
Expand Down
2 changes: 0 additions & 2 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def test_pretraining_max_epochs(adata, max_pretraining_epochs, requires_grad):
model.train(
max_epochs=20,
pretraining=True,
use_gpu=False,
accelerator="cpu",
early_stopping=False,
pretraining_max_epochs=max_pretraining_epochs,
Expand All @@ -69,7 +68,6 @@ def test_pretraining_early_stopping(adata, pretraining_early_stopping, requires_
model.train(
max_epochs=20,
pretraining=True,
use_gpu=False,
accelerator="cpu",
early_stopping=False,
pretraining_early_stopping=pretraining_early_stopping,
Expand Down

0 comments on commit 8436374

Please sign in to comment.