neural-bipartite-matching's People
neural-bipartite-matching's Issues
On Nueral biaprtite matching
when i run flow_datasets.py file in the Neural bipartite matching, i get this error: i have tried to resolve it but until now i have failed.some assistance pliz. Plus how can support this page in terms of donation, can it accept visa card payment.
File ~/ns-allinone-3.38/ns-3.38/km/flow_datasets.py:209
f = SingleIterationDataset('./all_iter', split='test', less_wired=True, device='cpu', probp=3, probq=4)
TypeError: Can't instantiate abstract class SingleIterationDataset with abstract method len
IndexError: index 6 is out of bounds for dimension 0 with size 6
Hello Prof, I embarked on understanding Nueral bipartite matching as
clearly explained in your paper. i have tested 98% of your code and its a
success. i have only met the error: IndexError: index 6 is out of bounds
for dimension 0 with size 6 and it points to utils.py script.iam testing on different new graph data.The error is in this function:::::
def create_inv_edge_index(batch_size, size, edge_index):iei =
torch.full((batch_sizesize, batch_sizesize), -100, dtype=torch.long)for i
in range(len(edge_index[0])):iei[edge_index[0][i]][edge_index[1][i]] =
ireturn iei
part of the output where the error is displayed is shown below:
tedge_index = torch.tensor(edge_index).clone().detach()
tensor([[ 5., 1.],
[ 1., 1.],
[14., 1.],
[ 7., 1.],
[ 1., 1.],
[ 6., 1.],
[12., 1.],
[14., 1.],
[15., 1.],
[ 5., 1.],
[10., 1.],
[ 2., 0.],
[ 9., 0.],
[14., 0.],
[15., 0.],
[13., 0.],
[ 5., 0.],
[ 3., 0.],
[10., 0.],
[ 9., 0.],
[15., 0.],
[14., 0.]], grad_fn=)
ROOT ./bfs_less_wired
PROCESSED bfs_less_wired/processed
ROOT ./bfs_less_wired
PROCESSED bfs_less_wired/processed
ROOT ./all_iter_less_wired
PRP []
PROCESSED all_iter_less_wired/processed
ROOT ./all_iter_less_wired
PRP []
PROCESSED all_iter_less_wired/processed
Processing...
Done!
Processing...
Done!
Processing...
Done!
Processing...
Done!
Traceback (most recent call last):
File "/tmp/ipykernel_5044/3463109613.py", line 73, in
inv_edge_index = utils.create_inv_edge_index(len(GRAPH_SIZES),
GRAPH_SIZES.max(), batch.edge_index)
File "/home/nahondo/Desktop/nsm/utils.py", line 221, in
create_inv_edge_index
iei[edge_index[0][i]][edge_index[1][i]] = i
IndexError: index 6 is out of bounds for dimension 0 with size 6
TypeError: argument of type 'int' is not iterable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.