Created
December 6, 2016 13:00
-
-
Save solebox/da54dd6f91bcd654777feaa9d736d8ad to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/python2.7 | |
import json | |
data = "" | |
with open("result.json", "r") as json_dump: | |
data = json.load(json_dump) | |
print("file_name: {}".format(data["file_name"])) | |
for student in data["students"]: | |
print("student first name: {}".format(student["student_name"])) | |
print("student last name: {}".format( student["student_last_name"])) | |
print("student id: {}".format(student["student_id"])) | |
print("jaccard distances of all selection combinations: ") | |
print(json.dumps(student["jdistances"], indent=4)) | |
for round in student["rounds"]: | |
# uniq_selected_categories - cats selected at least once by the user | |
# categorie_selection_count - how many times a student chose the specific cat | |
print("round data {}".format(json.dumps(round, indent=4))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment