Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError #6

Open
saiprasanna06 opened this issue Nov 21, 2022 · 0 comments
Open

AttributeError #6

saiprasanna06 opened this issue Nov 21, 2022 · 0 comments

Comments

@saiprasanna06
Copy link

$python main.py --dataset MUTAG

Generating results for MUTAG...
Generating discrete embeddings for MUTAG.
/home/cma/anaconda3/lib/python3.9/site-packages/numpy/lib/npyio.py:528: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
arr = np.asanyarray(arr)
Embeddings for MUTAG computed, saved to output/MUTAG/MUTAG_wl_discrete_embeddings_h2.npy.

Computing the Wasserstein distances...
Traceback (most recent call last):
File "/home/cma/Documents/WWL-master/experiments/main.py", line 180, in
main()
File "/home/cma/Documents/WWL-master/experiments/main.py", line 65, in main
wasserstein_distances = compute_wasserstein_distance(label_sequences, h, sinkhorn=sinkhorn,
File "/home/cma/Documents/WWL-master/experiments/wwl.py", line 192, in compute_wasserstein_distance
costs = ot.dist(labels_1, labels_2, metric=ground_distance)
File "/home/cma/anaconda3/lib/python3.9/site-packages/ot/utils.py", line 237, in dist
return cdist(x1, x2, metric=metric, w=w)
File "/home/cma/anaconda3/lib/python3.9/site-packages/scipy/spatial/distance.py", line 2929, in cdist
return cdist_fn(XA, XB, out=out, **kwargs)
File "/home/cma/anaconda3/lib/python3.9/site-packages/scipy/spatial/distance.py", line 1673, in call
XA, XB, typ, kwargs = _validate_cdist_input(
File "/home/cma/anaconda3/lib/python3.9/site-packages/scipy/spatial/distance.py", line 205, in _validate_cdist_input
kwargs = _validate_kwargs((XA, XB), mA + mB, n, **kwargs)
File "/home/cma/anaconda3/lib/python3.9/site-packages/scipy/spatial/distance.py", line 225, in _validate_hamming_kwargs
if w.ndim != 1 or w.shape[0] != n:
AttributeError: 'NoneType' object has no attribute 'ndim'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant