victormiller
commited on
Commit
•
b3e8866
1
Parent(s):
8ca3438
Update results.py
Browse files- results.py +5 -5
results.py
CHANGED
@@ -212,14 +212,14 @@ data = {
|
|
212 |
years = ["2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
|
213 |
|
214 |
# Create the figure
|
215 |
-
|
216 |
|
217 |
# Add lines for each bucket
|
218 |
for bucket, perplexities in data.items():
|
219 |
-
|
220 |
|
221 |
# Update layout
|
222 |
-
|
223 |
title="Perplexity Across Different Years (Global)",
|
224 |
xaxis_title="Year",
|
225 |
yaxis_title="Average Perplexity",
|
@@ -227,7 +227,7 @@ fig.update_layout(
|
|
227 |
)
|
228 |
|
229 |
# Show the figure
|
230 |
-
|
231 |
|
232 |
|
233 |
#graph 3 tbd
|
@@ -909,7 +909,7 @@ perp1_div = Div(
|
|
909 |
H3("Perplexity vs Years"),
|
910 |
P("Taking the same data, we can convert it into a graph indicating the yearly trend. For most buckets, the average perplexity of dumps from more recent years seem to be lower than that of former years."),
|
911 |
Img(src="images/prep-across-diff-year-global-dup-buckets.png", height = "300", width = "600" ),
|
912 |
-
plotly2fasthtml(
|
913 |
P("NEED TO UPDATE - THIS GRAPH SHOULD MATCH THE IMAGE ABOVE AND YEAR SHOULD NOT BE a LINE OPTION"),
|
914 |
),
|
915 |
Section(
|
|
|
212 |
years = ["2014", "2015", "2016", "2017", "2018", "2019", "2020", "2021", "2022", "2023"]
|
213 |
|
214 |
# Create the figure
|
215 |
+
fig22 = go.Figure()
|
216 |
|
217 |
# Add lines for each bucket
|
218 |
for bucket, perplexities in data.items():
|
219 |
+
fig22.add_trace(go.Scatter(x=years, y=perplexities, mode='lines+markers', name=bucket))
|
220 |
|
221 |
# Update layout
|
222 |
+
fig22.update_layout(
|
223 |
title="Perplexity Across Different Years (Global)",
|
224 |
xaxis_title="Year",
|
225 |
yaxis_title="Average Perplexity",
|
|
|
227 |
)
|
228 |
|
229 |
# Show the figure
|
230 |
+
graph2222 = fig22
|
231 |
|
232 |
|
233 |
#graph 3 tbd
|
|
|
909 |
H3("Perplexity vs Years"),
|
910 |
P("Taking the same data, we can convert it into a graph indicating the yearly trend. For most buckets, the average perplexity of dumps from more recent years seem to be lower than that of former years."),
|
911 |
Img(src="images/prep-across-diff-year-global-dup-buckets.png", height = "300", width = "600" ),
|
912 |
+
plotly2fasthtml(graph2222),
|
913 |
P("NEED TO UPDATE - THIS GRAPH SHOULD MATCH THE IMAGE ABOVE AND YEAR SHOULD NOT BE a LINE OPTION"),
|
914 |
),
|
915 |
Section(
|