Skip to content

Commit 65e48a6

Browse files
committed
reduce max epochs and train size
1 parent 165dc99 commit 65e48a6

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/methods/cytovi/config.vsh.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ arguments:
3838
type: integer
3939
default: 1
4040
description: Number of layers.
41-
- name: --n_clusters
41+
- name: --max_epochs
4242
type: integer
43-
default: 20
44-
description: Number of clusters to use for subsampling.
45-
- name: --subsample_fraction
43+
default: 500
44+
description: Number of epochs to train the model.
45+
- name: --train_size
4646
type: double
47-
default: 0.5
47+
default: 0.7
4848
description: Fraction of cells to subsample from each cluster for training.
4949

5050
# Resources required to run the component

src/methods/cytovi/script.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
"output": "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/output_cytovi_split2.h5ad",
1616
"n_hidden": 128,
1717
"n_layers": 1,
18+
"max_epochs": 500,
19+
"train_size": 0.7,
1820
}
1921
meta = {"name": "cytovi"}
2022
## VIASH END
@@ -57,6 +59,8 @@
5759
start = time.time()
5860
model.train(
5961
batch_size=8192,
62+
max_epochs=par["max_epochs"],
63+
train_size=par["train_size"],
6064
)
6165
end = time.time()
6266
print(f"Training took {end - start:.2f} seconds", flush=True)

0 commit comments

Comments
 (0)