victormiller
commited on
Commit
•
8ca3438
1
Parent(s):
8825bba
Update results.py
Browse files- results.py +17 -20
results.py
CHANGED
@@ -199,40 +199,37 @@ Perplexity_Across_Different_Buckets_global_graph = fig
|
|
199 |
##graph 2
|
200 |
|
201 |
# Data
|
202 |
-
years = ["2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
|
203 |
-
buckets = ["1-1", "2-5", "6-10", "11-100", "101-1000", "1001-30000000"]
|
204 |
data = {
|
205 |
-
"
|
206 |
-
"
|
207 |
-
"
|
208 |
-
"
|
209 |
-
"
|
210 |
-
"
|
211 |
-
"2020": [16.98821894111693, 15.936494557783181, 14.79960386342691, 14.435682562274105, 14.58651834886038, 15.869365567783806],
|
212 |
-
"2021": [17.125795647512877, 15.780419457145868, 14.631430892394002, 14.276477514399625, 14.337146941773641, 15.872474774329305],
|
213 |
-
"2022": [16.573462144306383, 15.283018703313582, 14.378277745163881, 14.0611924390084, 13.9886330091318, 15.769421394877273],
|
214 |
-
"2023": [15.4293630385597, 14.608379914730168, 14.118271697056592, 13.880215644749589, 13.767106666731275, 15.05749135510839]
|
215 |
}
|
216 |
-
|
217 |
# Create a line plot for each bucket
|
|
|
|
|
|
|
|
|
218 |
fig = go.Figure()
|
219 |
|
220 |
-
for
|
221 |
-
|
222 |
-
fig.add_trace(go.Scatter(x=years, y=
|
223 |
|
224 |
# Update layout
|
225 |
fig.update_layout(
|
226 |
-
title="
|
227 |
xaxis_title="Year",
|
228 |
yaxis_title="Average Perplexity",
|
229 |
-
legend_title="
|
230 |
-
hovermode="x unified"
|
231 |
)
|
232 |
|
233 |
-
# Show
|
234 |
graph2 = fig
|
235 |
|
|
|
236 |
#graph 3 tbd
|
237 |
|
238 |
data = {
|
|
|
199 |
##graph 2
|
200 |
|
201 |
# Data
|
|
|
|
|
202 |
data = {
|
203 |
+
"1-1": [17.410227605477868, 17.446573602753478,17.307221780905284,17.338525603992114,17.08551151136689,16.818363305107052,16.98821894111693, 17.125795647512877,16.573462144306383, 15.4293630385597],
|
204 |
+
"2-5": [16.11176217183986,16.14852530113782,16.297702171159543,15.960924352297502,16.187802102106698,16.474269837858706,15.936494557783181, 15.780419457145868,15.283018703313582, 14.608379914730168],
|
205 |
+
"6-10": [15.632757662414805,15.627408549576069,15.948641884223639,15.912187993988933,14.935072408852303,14.944741674400241,14.79960386342691,14.631430892394002, 14.378277745163881,14.118271697056592],
|
206 |
+
"11-100": [15.446116676532212,15.0055028132117,14.799690714225637,14.822102470001267,14.832038213200583,14.568394784374943,14.435682562274105,14.276477514399625, 14.0611924390084,13.880215644749589],
|
207 |
+
"101-1000": [16.716943171826703,15.565430373421485,14.935989931859659,14.778913482337416,14.508674264491997,14.690158822673334,14.58651834886038,14.337146941773641,13.9886330091318,13.767106666731275 ],
|
208 |
+
"1001-30000000": [18.156821563322765,17.314701050452452,16.09585768919658,15.428145290012955, 14.800605964649103, 15.990949424635108,15.869365567783806,15.872474774329305, 15.769421394877273, 15.05749135510839],
|
|
|
|
|
|
|
|
|
209 |
}
|
|
|
210 |
# Create a line plot for each bucket
|
211 |
+
# Years
|
212 |
+
years = ["2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
|
213 |
+
|
214 |
+
# Create the figure
|
215 |
fig = go.Figure()
|
216 |
|
217 |
+
# Add lines for each bucket
|
218 |
+
for bucket, perplexities in data.items():
|
219 |
+
fig.add_trace(go.Scatter(x=years, y=perplexities, mode='lines+markers', name=bucket))
|
220 |
|
221 |
# Update layout
|
222 |
fig.update_layout(
|
223 |
+
title="Perplexity Across Different Years (Global)",
|
224 |
xaxis_title="Year",
|
225 |
yaxis_title="Average Perplexity",
|
226 |
+
legend_title="Bucket (duplicate count range)"
|
|
|
227 |
)
|
228 |
|
229 |
+
# Show the figure
|
230 |
graph2 = fig
|
231 |
|
232 |
+
|
233 |
#graph 3 tbd
|
234 |
|
235 |
data = {
|