asahi417 commited on
Commit
812eef2
1 Parent(s): 0fe41bd
data/stats.predicate_distribution.png CHANGED

Git LFS Details

  • SHA256: 65cf9ce1995892c0cf48c8500641475cde64bf651687acaa99b0ec4cba70c1f8
  • Pointer size: 130 Bytes
  • Size of remote file: 89.7 kB

Git LFS Details

  • SHA256: b5a3de982709bead03544a2ce19f10d12ce157169410cfb6b8c8915128bc751b
  • Pointer size: 130 Bytes
  • Size of remote file: 54.6 kB
stats.py CHANGED
@@ -104,6 +104,7 @@ if __name__ == '__main__':
104
  print(df_size.to_markdown())
105
 
106
  # plot predicate distribution
 
107
  df_p = pd.DataFrame([dict(enumerate(sorted(p.values(), reverse=True))) for p in p_dist_full]).T
108
  df_p.columns = [f"min entity: {mef}, max predicate: {mpf}" for mef, mpf in candidates]
109
  _df_p = df_p[[f"min entity: {mef}, max predicate: 100" for mef in [1, 2, 3, 4]]]
@@ -116,7 +117,6 @@ if __name__ == '__main__':
116
  # plot entity distribution
117
  df_e = pd.DataFrame([dict(enumerate(sorted(e.values(), reverse=True))) for e in e_dist_full]).T
118
  df_e.columns = [f"min entity: {mef}, max predicate: {mpf}" for mef, mpf in candidates]
119
-
120
  fig, axes = plt.subplots(2, 2, constrained_layout=True)
121
  fig.suptitle('Entity Distribution over Different Configurations')
122
  for (x, y), mpf in zip([(0, 0), (0, 1), (1, 0), (1, 1)], [100, 50, 25, 10]):
 
104
  print(df_size.to_markdown())
105
 
106
  # plot predicate distribution
107
+ fig = plt.figure()
108
  df_p = pd.DataFrame([dict(enumerate(sorted(p.values(), reverse=True))) for p in p_dist_full]).T
109
  df_p.columns = [f"min entity: {mef}, max predicate: {mpf}" for mef, mpf in candidates]
110
  _df_p = df_p[[f"min entity: {mef}, max predicate: 100" for mef in [1, 2, 3, 4]]]
 
117
  # plot entity distribution
118
  df_e = pd.DataFrame([dict(enumerate(sorted(e.values(), reverse=True))) for e in e_dist_full]).T
119
  df_e.columns = [f"min entity: {mef}, max predicate: {mpf}" for mef, mpf in candidates]
 
120
  fig, axes = plt.subplots(2, 2, constrained_layout=True)
121
  fig.suptitle('Entity Distribution over Different Configurations')
122
  for (x, y), mpf in zip([(0, 0), (0, 1), (1, 0), (1, 1)], [100, 50, 25, 10]):