init
Browse files- data/stats.predicate_distribution.png +2 -2
- stats.py +1 -1
data/stats.predicate_distribution.png
CHANGED
Git LFS Details
|
Git LFS Details
|
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]):
|