Skip to content

Commit e86a3b5

Browse files
author
Ralf
committed
plot and save frequency as param
1 parent b207eb5 commit e86a3b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

training.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@
9090
type=click.IntRange(min=10),
9191
default=2000, show_default=True,
9292
help="Approx. size (number of samples) of the tfRecords used in the data pipeline for training. Lower values = less memory consumption, but maybe longer runtime")
93+
@click.option("--plotFrequency", "-pfreq", required=False,
94+
type=click.IntRange(min=1),
95+
default=10, show_default=True,
96+
help="Update loss over epoch plots after this number of epochs")
9397
@click.command()
9498
def training(trainmatrices,
9599
trainchroms,
@@ -113,7 +117,8 @@ def training(trainmatrices,
113117
embeddingtype,
114118
pretrainedintromodel,
115119
figuretype,
116-
recordsize):
120+
recordsize,
121+
plotfrequency):
117122

118123
#few constants
119124
windowsize = int(windowsize)
@@ -262,6 +267,7 @@ def training(trainmatrices,
262267
learning_rate_discriminator=learningratedisc,
263268
adam_beta_1=beta1,
264269
plot_type=figuretype,
270+
plot_frequency=plotfrequency,
265271
embedding_model_type=embeddingtype,
266272
pretrained_model_path=pretrainedintromodel)
267273
hicGanModel.plotModels(outputpath=outfolder, figuretype=figuretype)

0 commit comments

Comments
 (0)