Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
chriscanal
commited on
Commit
·
02700b6
1
Parent(s):
e872e8a
Added y-axis range to make graph more aesthetically pleasing
Browse filesrange was set to automatic which puts horizontal line at the top, incorrectly implying that humans are peak intellectual performance.
![Screenshot 2023-09-26 at 9.49.32 AM.png](/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F62e2c159555a866437a920ca%2FhvdViR0A21XNro1o2gYcn.png)%3Cbr%2F%3E%3Cbr%2F%3ENew graph has 0 to 100 range
![Screenshot 2023-09-26 at 9.55.57 AM.png](/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F62e2c159555a866437a920ca%2Fd8ZUVmKlbQalHJ7Hid_Zr.png)%3C!-- HTML_TAG_END -->
src/display_models/plot_results.py
CHANGED
@@ -184,6 +184,9 @@ def create_metric_plot_obj(
|
|
184 |
)
|
185 |
)
|
186 |
|
|
|
|
|
|
|
187 |
# Create a dictionary to hold the color mapping for each metric
|
188 |
metric_color_mapping = {}
|
189 |
|
|
|
184 |
)
|
185 |
)
|
186 |
|
187 |
+
# Update the range of the y-axis
|
188 |
+
fig.update_layout(yaxis_range=[0, 100])
|
189 |
+
|
190 |
# Create a dictionary to hold the color mapping for each metric
|
191 |
metric_color_mapping = {}
|
192 |
|