01f06390aaa65d498b2748dbc7f60f989bbc26cc,dc_integration/distribution/cwmm.py,ComplexWatsonMixtureModelParameters,predict,#ComplexWatsonMixtureModelParameters#Any#,44

Before Change



    def predict(self, Y):

        *independent, T, D = Y.shape
        assert D < 20, (D, "Sure?")

        Y = _unit_norm(

After Change


        Returns: Affiliations with shape (..., K, T).
        
        assert np.iscomplexobj(x), x.dtype
        x = x / np.maximum(
            np.linalg.norm(x, axis=-1, keepdims=True), np.finfo(x.dtype).tiny
        )
        return self._predict(x)

    def _predict(self, x):
        Predict class affiliation posteriors from given model.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: fgnt/pb_bss
Commit Name: 01f06390aaa65d498b2748dbc7f60f989bbc26cc
Time: 2018-08-15
Author: mail@lukas-drude.de
File Name: dc_integration/distribution/cwmm.py
Class Name: ComplexWatsonMixtureModelParameters
Method Name: predict


Project Name: scipy/scipy
Commit Name: a28877d3b223c24f3ca7454154147f9c7e44b7aa
Time: 2017-10-15
Author: pav@iki.fi
File Name: scipy/linalg/tests/test_decomp.py
Class Name:
Method Name: test_null_space


Project Name: KrishnaswamyLab/PHATE
Commit Name: b912ae50a0ca1766eceb062973e2952997285fac
Time: 2018-04-04
Author: scottgigante@gmail.com
File Name: Python/phate/phate.py
Class Name: PHATE
Method Name: von_neumann_entropy