Skip to content

Commit c159786

Browse files
author
arthurPignet
committed
Transpose confusion matrix in theta initialisation with pretrain
Signed-off-by: arthurPignet <arthur.pignet@mines-paristech.fr> Signed-off-by: arthurPignet <arthur.pignet@mines-paristech.fr>
1 parent c7426f5 commit c159786

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mplc/multi_partner_learning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ def fit(self):
546546
confusion = confusion_matrix(np.argmax(p.y_train, axis=1),
547547
np.argmax(pretrain_model.predict(p.x_train), axis=1),
548548
normalize='pred')
549-
p.noise_layer_weights = [np.log(confusion + 1e-8)]
549+
p.noise_layer_weights = [np.log(confusion.T + 1e-8)]
550550
self.model_weights[:-1] = self.pretrain_mpl.model_weights[:-1]
551551
else:
552552
for p in self.partners_list:

0 commit comments

Comments
 (0)