You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to ask about an error of 'incompatible function arguments'.
It suggests only the following argument types are supported: 1. (arg0: numpy.ndarray[numpy.int64], arg1: numpy.ndarray[numpy.float64], arg2: numpy.ndarray[numpy.float64], arg3: int, arg4: int, arg5: str, arg6: int) Tuple[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32]]
when I used numpy.array.
So I changed from numpy.array to numpy.ndarray, but it raises another error of ValueError: maximum supported dimension for an ndarray is 32, found 390577
The following is my script.
`from pcst_fast import pcst_fast
import numpy as np
import pickle5 as pickle
Hi,
I would like to ask about an error of 'incompatible function arguments'.
It suggests only the
following argument types are supported: 1. (arg0: numpy.ndarray[numpy.int64], arg1: numpy.ndarray[numpy.float64], arg2: numpy.ndarray[numpy.float64], arg3: int, arg4: int, arg5: str, arg6: int) Tuple[numpy.ndarray[numpy.int32], numpy.ndarray[numpy.int32]]
when I used numpy.array.
So I changed from numpy.array to numpy.ndarray, but it raises another error of
ValueError: maximum supported dimension for an ndarray is 32, found 390577
The following is my script.
`from pcst_fast import pcst_fast
import numpy as np
import pickle5 as pickle
edge = pickle.load(open('edge.pickle', 'rb'))
prizes = pickle.load(open('prize.pickle', 'rb'))
edges = []
costs = []
for (gene1, gene2) in edge:
edges.append([gene1, gene2])
costs.append(edge[(gene1, gene2)])
edges = np.ndarray(edges, dtype='int64')
costs = np.ndarray(costs, dtype='float64')
prize = np.ndarray(prizes, dtype='float64')
verticess, edgess = pcst_fast(edges, prize, costs, root=-1, num_clusters=3, pruning='strong', verbosity_level=3)
print(verticess)
print(edgess)
`
The text was updated successfully, but these errors were encountered: