Skip to content

Commit b7302b5

Browse files
authored
Merge pull request #311 from SubstraFoundation/fix-smodel-init-with-pretrain
Fix smodel
2 parents c7426f5 + c159786 commit b7302b5

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)