fcfd5e3dc3c5c6b99598b564d4ba6f5c13f2d656,dc_integration/distribution/cacgmm.py,CACGMM,predict,#CACGMM#Any#,21

Before Change



    def predict(self, x):
        assert np.iscomplexobj(x), x.dtype
        x = x / np.maximum(
            np.linalg.norm(x, axis=-1, keepdims=True), np.finfo(x.dtype).tiny
        )
        affiliation, quadratic_form = self._predict(x)
        return affiliation

    def _predict(self, x):

After Change



    def predict(self, y):
        assert np.iscomplexobj(y), y.dtype
        y = normalize_observation(y)  // swap D and N dim
        affiliation, quadratic_form = self._predict(y)
        return affiliation
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: fgnt/pb_bss
Commit Name: fcfd5e3dc3c5c6b99598b564d4ba6f5c13f2d656
Time: 2018-11-02
Author: cbj@mail.uni-paderborn.de
File Name: dc_integration/distribution/cacgmm.py
Class Name: CACGMM
Method Name: predict


Project Name: fgnt/pb_bss
Commit Name: fcfd5e3dc3c5c6b99598b564d4ba6f5c13f2d656
Time: 2018-11-02
Author: cbj@mail.uni-paderborn.de
File Name: dc_integration/distribution/complex_angular_central_gaussian.py
Class Name: ComplexAngularCentralGaussian
Method Name: log_pdf


Project Name: fgnt/pb_bss
Commit Name: 5c20390356980eabc9f41dfa24229b0f8f2fe75a
Time: 2019-04-29
Author: cbj@mail.uni-paderborn.de
File Name: pb_bss/distribution/cwmm.py
Class Name: CWMMTrainer
Method Name: fit