Skip to content

Commit

Permalink
add visualization tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderVNikitin committed Nov 17, 2023
1 parent d9ed701 commit 6bcca31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_visualizations.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def test_visualize_ts_lineplot(unite_features):
ys = np.array([1, 2])
tsgm.utils.visualize_ts_lineplot(Xs, ys, num=1, unite_features=unite_features)

ys = np.array([[1, 2], [1, 2]])
tsgm.utils.visualize_ts_lineplot(Xs, ys, num=1, unite_features=unite_features)


def test_visualize_training_loss():
loss = np.array([[10.0], [9.0], [8.0], [7.0]])
Expand All @@ -76,3 +79,7 @@ def test_visualize_original_and_reconst_ts():
reconstructed = original
tsgm.utils.visualize_original_and_reconst_ts(original, reconstructed)


def test_visualize_training_loss():
loss_vector = np.ones((100, 100))
tsgm.utils.visualize_training_loss(loss_vector, labels=("a", "b"))

0 comments on commit 6bcca31

Please sign in to comment.