def test_sdg_likelihood_categorical(): sdg = DataGenerator(10, ['categorical']*2, view_weights=1) x = [0, 1, 2] lls = sdg.log_likelihood(x, 0) assert len(lls) == 3 assert lls.shape == (3,)
def test_sdg_likelihood_categorical(): sdg = DataGenerator(10, ['categorical'] * 2, view_weights=1) x = [0, 1, 2] lls = sdg.log_likelihood(x, 0) assert len(lls) == 3 assert lls.shape == (3, )
def test_sdg_likelihood_continuous(): sdg = DataGenerator(10, ['continuous']*2, view_weights=1) x = np.linspace(0, 6, 10) lls = sdg.log_likelihood(x, 0) assert len(lls) == 10 assert lls.shape == (10,)
def test_sdg_likelihood_continuous(): sdg = DataGenerator(10, ['continuous'] * 2, view_weights=1) x = np.linspace(0, 6, 10) lls = sdg.log_likelihood(x, 0) assert len(lls) == 10 assert lls.shape == (10, )