Skip to content

Commit

Permalink
Remove MMD unit tests line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jaime-cespedes-sisniega committed Dec 6, 2024
1 parent ba2c4d6 commit 373c1cc
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def test_mmd_batch_univariate(
:type expected_distance: float
"""
np.random.seed(seed=RANDOM_SEED)
X_ref = np.random.normal(*distribution_p) # noqa: N806
X_test = np.random.normal(*distribution_q) # noqa: N806
X_ref = np.random.normal(*distribution_p)
X_test = np.random.normal(*distribution_q)

detector = MMD(
kernel=partial(
Expand Down Expand Up @@ -84,8 +84,8 @@ def test_mmd_batch_precomputed_expected_k_xx(
:type chunk_size: Optional[int]
"""
np.random.seed(seed=RANDOM_SEED)
X_ref = np.random.normal(*distribution_p) # noqa: N806
X_test = np.random.normal(*distribution_q) # noqa: N806
X_ref = np.random.normal(*distribution_p)
X_test = np.random.normal(*distribution_q)

kernel = partial(
rbf_kernel,
Expand All @@ -102,7 +102,7 @@ def test_mmd_batch_precomputed_expected_k_xx(
precomputed_distance = detector.compare(X=X_test)[0].distance

# Computes mmd from scratch
scratch_distance = MMD._mmd( # pylint: disable=protected-access
scratch_distance = MMD._mmd(
X=X_ref,
Y=X_test,
kernel=kernel,
Expand Down Expand Up @@ -135,8 +135,8 @@ def test_mmd_chunk_size_equivalence(
:type chunk_size: int
"""
np.random.seed(seed=RANDOM_SEED)
X_ref = np.random.normal(*distribution_p) # noqa: N806
X_test = np.random.normal(*distribution_q) # noqa: N806
X_ref = np.random.normal(*distribution_p)
X_test = np.random.normal(*distribution_q)

kernel = partial(
rbf_kernel,
Expand Down

0 comments on commit 373c1cc

Please sign in to comment.