-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathnovelty_analysis.py
20 lines (15 loc) · 1.21 KB
/
novelty_analysis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import numpy as np
import matplotlib.pyplot as plt
def temporary_disablement():
uninstalled = [0, 0, 0, 8, 7, 0, 0, 0, 1, 0, 0, 0]
not_uninstalled = [4,14,11,0,0,3,0,0,0,9,0,0,0,1,0,10,4,0,7,0,2,9,0,0,0,2,0,0,0,2,0,0,0,0,6,9,2,0,0,0,0,0,9,0,0,1,1,0,0,0,0,0,0,1,4,0,4,2,1,0,0,1,0,0,0,0,0,1,0,0,0,0,0,3,4,4,0,0,0,0,6,5,2,0,0,3,0,1,0,0,0,0,0,0,2,0,0,6,0,4,0,0,0,0,0,0,0,0,0,12,0,0,1,0,0,1,3,6,0,0,0,1,0,0,3,2,0,2,0,0,2,0,0,0,1,5,0,9,3,0,4,0,8,0,3,0,0,1,0,0,0,1,0,2,0,3,17,0,1,0,0,0,0,1,3,0,0,3,0,14,0,4,10,0,0,0,0,0,0,11,8,0,0,14,8,4,0,17,0,0,0,0,6,19,1,0,0,13,0,0,3,0,0,0,0,12,0,1,0,0,0,0,4,1,1,0,3,7,0,0,0,1,0,0,0,3,0,0,0,0,10,0,0,0,0,0,0,1,107,9,4,0,0,0,0,0,5,1,2,0,1,10,0,0,3,147,8,1,7,0,0,3,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,307,0,7,0,4,0,0,11,5,0,0,3,0,0,0,0,0,0,1,26,3,21,0,0,2,0,0,0,4,0,0,0,1,0,0,0,0,0,0,0,0,0,0,2,0,6,4,0,3,0,6,0,0,0,0,0,1,0,0,0,0,11,0,2,0,1,16,0,0,0,0,7,0,0,1,13,4,4,0,0,0,0,6]
# plt.hist(uninstalled)
# plt.title("Number of Intervention Log Records for Uninstalled Users")
# plt.show()
plt.hist(not_uninstalled, bins=np.arange(40))
plt.title("Number of Intervention Log Records for Non-Uninstalled Users")
plt.show()
def main():
temporary_disablement()
if __name__ == "__main__":
main()