D2 = np.zeros((nbclasses, nb_elem))
classes_d = np.zeros(nbclasses)
classes_d[np.unique(Ys[d]).astype(int)] = 1
dom["classes"] = classes_d
for c in classes:
After Change
print("{:5d}|{:8e}|".format(cpt, err))
bary = bary / np.sum(bary)
couplings = [all_domains[d]["K"] for d in range(nbdomains)]
if log:
log["niter"] = cpt