Code Monkey home page Code Monkey logo

masteringdm's People

Contributors

megansquire avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

masteringdm's Issues

scripts in ch4 should be modified

networkx.degree(...) yields a networkx.classes.reportviews.DegreeView object,
which has no method called *.values()
so, I think:

  1. line 16 in basicNetworkMetrics.py should be modified to dict(nx.degree(g))
  2. line 6 in basicNetworkMetrics2.py to for n in g.nodes():
    line 27 to d3 = dict(nx.degree(g2))
  3. line 23 in basicNetworkMetrics3.py to graphsSorted = sorted(graphs, key=len, reverse=True)
    line 31 to graphDegree = dict(nx.degree(graph))
  4. line 11 in basicNetworkMetrics5.py to graphDegree = dict(nx.degree(g))
  5. line 10 in basicNetworkMetrics6.py to graphs = sorted(list(nx.connected_component_subgraphs(g)), key=len, reverse=True)
    line 15 to graphDegree = dict(nx.degree(ego))
  6. line 18 in basicNetworkMetrics7.py to graphDegree = dict(nx.degree(graph))
  7. line 17 in basicNetworkMetrics8.py to graphDegree = dict(nx.degree(ego))
  8. line 19 in basicNetworkMetrics9.py to graphDegree = dict(nx.degree(ego))
  9. line 24 in bonusWeightedGraph.py to d = dict(nx.degree(ego))

line37 in ch2/assoc.py could be simpilfied further

hi, Megan, I am a reader of your fantastic book.
I think, line 37:
"for (index, candidate) in enumerate(doubletonCandidates):"
could be simpilfied to
”for candidate in doubletonCandidates:”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.