Skip to content

Commit 212af40

Browse files
committed
remove non-functional per_training_step from plots.loss
1 parent f7fe860 commit 212af40

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bayesflow/diagnostics/plots/loss.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def loss(
1414
history: keras.callbacks.History,
1515
train_key: str = "loss",
1616
val_key: str = "val_loss",
17-
per_training_step: bool = False,
1817
smoothing_factor: float = 0.8,
1918
figsize: Sequence[float] = None,
2019
train_color: str = "#132a70",
@@ -40,8 +39,6 @@ def loss(
4039
The training loss key to look for in the history
4140
val_key : str, optional, default: "val_loss"
4241
The validation loss key to look for in the history
43-
per_training_step : bool, optional, default: False
44-
A flag for making loss trajectory detailed (to training steps) rather than per epoch.
4542
smoothing_factor : float, optional, default: 0.8
4643
If greater than zero, smooth the loss curves by applying an exponential moving average.
4744
figsize : tuple or None, optional, default: None
@@ -170,7 +167,7 @@ def loss(
170167
num_row=num_row,
171168
num_col=1,
172169
title=["Loss Trajectory"],
173-
xlabel="Training step #" if per_training_step else "Training epoch #",
170+
xlabel="Training epoch #",
174171
ylabel="Value",
175172
title_fontsize=title_fontsize,
176173
label_fontsize=label_fontsize,

0 commit comments

Comments
 (0)