Skip to content

Commit

Permalink
ADD: better tests specs
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentAuriau committed Dec 27, 2024
1 parent f1e980a commit 0f0aa77
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/integration_tests/models/test_latent_class.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Tests basic stuff for the latent class models."""

import numpy as np
import tensorflow as tf

tf.config.run_functions_eagerly(True)
Expand Down Expand Up @@ -88,7 +89,9 @@ def test_manual_lc_gd():
)
manual_lc.instantiate(n_items=4, n_shared_features=0, n_items_features=6)
nll_before = manual_lc.evaluate(elec_dataset)
_ = manual_lc.fit(elec_dataset)
_ = manual_lc.fit(
elec_dataset, sample_weight=np.ones(len(elec_dataset)), val_dataset=elec_dataset[-10:]
)
assert manual_lc.evaluate(elec_dataset) < nll_before


Expand Down

0 comments on commit 0f0aa77

Please sign in to comment.