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

what is this #1

Open
tylenstar opened this issue Mar 28, 2018 · 3 comments
Open

what is this #1

tylenstar opened this issue Mar 28, 2018 · 3 comments

Comments

@tylenstar
Copy link

ITERATION # 0

0%| | 0/8124 [00:00<?, ?it/s]
36%|###5 | 2914/8124 [00:00<00:00, 26894.08it/s]
Traceback (most recent call last):
File "C:\Users\amirj\Documents\Data Mining\Project\abdg-master\abdg-master\examples\example_mushrooms.py", line 58, in
X_abdg, y_abdg = imput.predict(X.drop('bruises', axis=1), X['bruises'])
File "C:\Python64\lib\site-packages\abdg\imput.py", line 130, in predict
sgraph = self.make_subgraph(xi, col)
File "C:\Python64\lib\site-packages\abdg\imput.py", line 183, in make_subgraph
edges = self.G.edge[nod]
AttributeError: 'Graph' object has no attribute 'edge'

@airysen
Copy link
Owner

airysen commented Mar 28, 2018

Hi! I will check this. It seems like there were changes in latest NetworkX.

@tylenstar
Copy link
Author

tylenstar commented Mar 28, 2018 via email

@mitul6767
Copy link

I am getting keyerror(1) while indexing edge during generation of a subgraph. I have also attached a screenshot. Can you please resolve it?
here node is like (1,2), (1,3), (0,1)
and edge is like [((1,2), (1,3)), ((1,3), (0,1)),.....]
and the following line of code is giving error as value of nod is (1,2) as INSTANCE.
edges = self.G.edges[nod]
Do I need to chande this index? and if yes than how?
my mail id is mitul6767@gmail.com
screenshot 2018-11-17 at 1 48 36 pm

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

3 participants