7123df402c43e1537f73f63db5d90ed4ea03009d,cde/tests/unittests_estimators.py,TestRiskMeasures,test_mean_mixture,#TestRiskMeasures#,159

Before Change


    X = data[:, 0:2]
    Y = data[:, 2:4]

    model = MixtureDensityNetwork(n_centers=5)
    model.fit(X, Y)

    mean_est = model.mean_(x_cond=np.array([[1,2]]))
    self.assertAlmostEqual(mean_est[0][0], 7, places=0)

After Change


    X = data[:, 0:2]
    Y = data[:, 2:4]

    model = MixtureDensityNetwork("mdn_mean", 2, 2,n_centers=5)
    model.fit(X, Y)

    mean_est = model.mean_(x_cond=np.array([[1,2]]))
    self.assertAlmostEqual(mean_est[0][0], 7, places=0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 7123df402c43e1537f73f63db5d90ed4ea03009d
Time: 2018-05-06
Author: jonas.rothfuss@gmx.de
File Name: cde/tests/unittests_estimators.py
Class Name: TestRiskMeasures
Method Name: test_mean_mixture


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 7123df402c43e1537f73f63db5d90ed4ea03009d
Time: 2018-05-06
Author: jonas.rothfuss@gmx.de
File Name: cde/tests/unittests_estimators.py
Class Name: TestConditionalDensityEstimators_2d_gaussian
Method Name: test_MDN_with_2d_gaussian


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 7123df402c43e1537f73f63db5d90ed4ea03009d
Time: 2018-05-06
Author: jonas.rothfuss@gmx.de
File Name: cde/tests/unittests_estimators.py
Class Name: TestConditionalDensityEstimators_2d_gaussian
Method Name: test_MDN_with_2d_gaussian_sampling


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: 7123df402c43e1537f73f63db5d90ed4ea03009d
Time: 2018-05-06
Author: jonas.rothfuss@gmx.de
File Name: cde/tests/unittests_estimators.py
Class Name: TestRiskMeasures
Method Name: test_covariance_mixture