Skip to content

Commit 43568b4

Browse files
committed
fix report format error
1 parent 74de261 commit 43568b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cgmm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ def update_parameters(self, spectrums, stats):
129129
self.noisy_part.update_parameters(spectrums, stats)
130130

131131
def train(self, spectrums, iters=30):
132-
print('Likelihood: {:.4}'.format(self.log_likelihood(spectrums)))
132+
print('Likelihood: ({0.real:.5f}, {0.imag:.5f}i)'.format(self.log_likelihood(spectrums)))
133133
for it in range(1, iters + 1):
134134
stats = self.accu_stats(spectrums)
135135
self.update_parameters(spectrums, stats)
136-
print('epoch {:2d}: Likelihood = {:.4}'.format(it, \
136+
print('epoch {0:2d}: Likelihood = ({1.real:.5f}, {1.imag:.5f}i)'.format(it, \
137137
self.log_likelihood(spectrums)))
138138

0 commit comments

Comments
 (0)