-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hi, Am I correct in understanding that hmds-simple.jl using the -k argument implements the h-MDS algorithm 2 of section 4 of the paper?
I'm running into some difficulty using this function. I've tried running the command julia hMDS/hmds-simple.jl -k data/test.pickle -r 10 -t 0.1 -m savetest.csvpip both with my setup and using the docker, but I get errors in both. The test.pickle file is a pickled torch 2D tensor, but I also tried running the same command with a space-separated distance matrix and a pickled numpy file (in case I had misunderstood).
In my setup I get the error:
ERROR: LoadError: PyError ($(Expr(:escape, :(ccall(#= /home/jacob/.julia/packages/PyCall/RQjD7/src/pyfncall.jl:44 =# @pysym(:PyObject_Call), PyPtr, (PyPtr, PyPtr, PyPtr), o, pyargsptr, kw))))) <class 'RuntimeError'>
RuntimeError('Overflow when unpacking long',)
File "/home/jacob/hyperbolics/utils/load_dist.py", line 44, in load_emb_dm
m = torch.load(file).to(device)
File "/home/jacob/miniconda3/lib/python3.6/site-packages/torch/serialization.py", line 368, in load
return _load(f, map_location, pickle_module)
File "/home/jacob/miniconda3/lib/python3.6/site-packages/torch/serialization.py", line 533, in _load
if magic_number != MAGIC_NUMBER:
In docker I get the error:
ERROR: LoadError: ArgumentError: Module LinearAlgebra not found in current path.
Run `Pkg.add("LinearAlgebra")` to install the LinearAlgebra package.
Stacktrace:
[1] _require(::Symbol) at ./loading.jl:435
[2] require(::Symbol) at ./loading.jl:405
[3] include_from_node1(::String) at ./loading.jl:576
[4] include(::String) at ./sysimg.jl:14
[5] process_options(::Base.JLOptions) at ./client.jl:305
[6] _start() at ./client.jl:371
while loading /root/hyperbolics/hMDS/hmds-simple.jl, in expression starting on line 4
Thanks for the help!
Metadata
Metadata
Assignees
Labels
No labels