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
Hi!
I am a beginner who is trying to learn NDlib for my thesis. I have been following the NDlib documentation. I was trying to run the code given on the link below for Node Categorical Attribute
I believe the issue is the import ndlib.models.compartments.NodeCategoricalAttribute as ns and c1 = na.NodeCategoricalAttribute("Sex", "male", probability=0.6)
Either (a) change the import to something like this import ndlib.models.compartments.NodeCategoricalAttribute as nca
and create the object like this c1 = nca("Sex", "male", probability=0.6)
or (b): import ndlib.models.compartments as cpm
and create the object like this c1 = cpm.NodeCategoricalAttribute("Sex", "male", probability=0.6)
Hi!
I am a beginner who is trying to learn NDlib for my thesis. I have been following the NDlib documentation. I was trying to run the code given on the link below for Node Categorical Attribute
[https://ndlib.readthedocs.io/en/latest/custom/compartments/NodeCategoricalAttribute.html]
while I was running I got the attribute error: type object 'EdgeCategoricalAttribute' has no attribute 'NodeCategoricalAttribute'
Can anyone help me with that?
Thanks!
The text was updated successfully, but these errors were encountered: