airysen / abdg

Attribute-based Decision Graph
MIT License
3 stars 4 forks source link

what is this #1

Open tylenstar opened 6 years ago

tylenstar commented 6 years ago

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 commented 6 years ago

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

tylenstar commented 6 years ago

Hi Ohh..ohkk...i downgraded the networkX...it worked ...great job on your programming...is it possible that can you help me on my class project?

Sent from my Samsung Galaxy smartphone.

-------- Original message -------- From: Arseniy Kustov notifications@github.com Date: 2018-03-28 03:40 (GMT-05:00) To: airysen/abdg abdg@noreply.github.com Cc: tylenstar amirjsiddiqui@hotmail.com, Author author@noreply.github.com Subject: Re: [airysen/abdg] what is this (#1)

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/airysen/abdg/issues/1#issuecomment-376791877, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Aj0aGQxR7r5cwS7aICQ3YMo3szLiKA8bks5tiz59gaJpZM4S-Gcp.

mitul6767 commented 5 years ago

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