bowrango / ClashRoyale

An effort to understand the complex meta within the Clash Royale universe through web scraping and data analysis
3 stars 1 forks source link

Remove initialized `usages` edge #19

Closed bowrango closed 3 years ago

bowrango commented 3 years ago

Pruning edges between cards that haven't been used together should improve the results from node2vec. The 0 edge weight should translate to a 0 probability in the random walk, but it would be interesting to compare the results.

bowrango commented 3 years ago

create_empty_graph now uses nx.empty_graph with all initialized node attributes, but no edges. push_decks() has been changed to create the new edge if one doesn't exist, or update an existing edge.