8 Aug
2019
8 Aug
'19
2:53 p.m.
Hi, I'm using OT package for GW, and I have a question regarding two arguments of the ot.gromov.gromov_wasserstein function. What is p and q? I couldn't see them in the objective function of the GW. p = ot.unif(n_samples)q = ot.unif(n_samples) gw0, log0 = ot.gromov.gromov_wasserstein( C1, C2, p, q, 'square_loss', verbose=True, log=True) gw, log = ot.gromov.entropic_gromov_wasserstein( C1, C2, p, q, 'square_loss', epsilon=5e-4, log=True, verbose=True) print('Gromov-Wasserstein distances: ' + str(log0['gw_dist']))print('Entropic Gromov-Wasserstein distances: ' + str(log['gw_dist']))