63352897d1db6a7a009a1097ee9b16be13fc53b3,qucumber/utils/training_statistics.py,,KL,#,111
Before Change
num_bases = 1
for i in range(len(space)):
KL += (
cplx.norm_sqr(target_psi[:, i]) * cplx.norm_sqr(target_psi[:, i]).log()
)
KL -= (
cplx.norm_sqr(target_psi[:, i])
After Change
for i in range(len(space)):
KL += (
cplx.norm_sqr(target_psi[:, i])
* (cplx.norm_sqr(target_psi[:, i]) + eps).log()
)
KL -= (
cplx.norm_sqr(target_psi[:, i])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: PIQuIL/QuCumber
Commit Name: 63352897d1db6a7a009a1097ee9b16be13fc53b3
Time: 2018-12-17
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/training_statistics.py
Class Name:
Method Name: KL
Project Name: PIQuIL/QuCumber
Commit Name: 274ec230054107d30bb91de43ec42b7393170928
Time: 2019-07-17
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/training_statistics.py
Class Name:
Method Name: NLL