-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from src.data_utils import POLL_DICTIONARY_FNAME, POLL_SUMMARY_FNAME | ||
from src.json_utils import load_json | ||
from src.matrix_utils import get_adjacency_matrix, get_tag_joint_game_matrix | ||
from src.tag_utils import sort_tags | ||
|
||
|
||
def main(): | ||
games = load_json(POLL_SUMMARY_FNAME) | ||
tag_dictionary = load_json(POLL_DICTIONARY_FNAME) | ||
|
||
tags, tag_names = sort_tags(tag_dictionary) | ||
|
||
tag_joint_game_matrix = get_tag_joint_game_matrix(games, tags) | ||
tags_adjacency_matrix = get_adjacency_matrix(tag_joint_game_matrix) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |