237e4335ca2927526e00e81456543da624e2ba31,pb_bss/distribution/gcacgmm.py,GCACGMM,_predict,#GCACGMM#,56
Before Change
)
affiliation = (
unsqueeze(np.log(self.weight), self.weight_constant_axis)
+ self.spatial_weight * cacg_log_pdf
+ self.spectral_weight * gaussian_log_pdf
)
affiliation -= np.max(affiliation, axis=-2, keepdims=True)
np.exp(affiliation, out=affiliation)
denominator = np.maximum(
np.einsum("...kt->...t", affiliation)[..., None, :],
np.finfo(affiliation.dtype).tiny,
)
affiliation /= denominator
return affiliation, quadratic_form
After Change
)
if inline_permutation_alignment:
affiliation \
= log_pdf_to_affiliation_for_integration_models_with_inline_pa(
weight=unsqueeze(self.weight, self.weight_constant_axis),
spatial_log_pdf=self.spatial_weight * cacg_log_pdf,
spectral_log_pdf=self.spectral_weight * gaussian_log_pdf,
)
else:
affiliation = log_pdf_to_affiliation(
weight=unsqueeze(self.weight, self.weight_constant_axis),
log_pdf=(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: fgnt/pb_bss
Commit Name: 237e4335ca2927526e00e81456543da624e2ba31
Time: 2019-08-08
Author: mail@lukas-drude.de
File Name: pb_bss/distribution/gcacgmm.py
Class Name: GCACGMM
Method Name: _predict
Project Name: leftthomas/SRGAN
Commit Name: 1433d4c435a253e891009b08a9280bc452087db0
Time: 2017-11-21
Author: leftthomas@qq.com
File Name: test.py
Class Name:
Method Name:
Project Name: fgnt/pb_bss
Commit Name: 237e4335ca2927526e00e81456543da624e2ba31
Time: 2019-08-08
Author: mail@lukas-drude.de
File Name: pb_bss/distribution/vmfcacgmm.py
Class Name: VMFCACGMM
Method Name: _predict