Spaces:
Runtime error
Runtime error
magilogi
commited on
Commit
·
0b20d0d
1
Parent(s):
c5ae15c
adjusted score change
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import pandas as pd
|
|
|
2 |
import gradio as gr
|
3 |
import plotly.express as px
|
4 |
import plotly.graph_objects as go
|
@@ -57,8 +58,7 @@ df.rename(columns={
|
|
57 |
|
58 |
df['Average Accuracy (Original and G2B)'] = (df['Average G2B Accuracy'] + df['Average Original Accuracy']) / 2
|
59 |
|
60 |
-
df['Adjusted Robustness Score'] =
|
61 |
-
|
62 |
df['Adjusted Robustness Score'] = df['Adjusted Robustness Score'].round(2)
|
63 |
|
64 |
|
|
|
1 |
import pandas as pd
|
2 |
+
import numpy as np
|
3 |
import gradio as gr
|
4 |
import plotly.express as px
|
5 |
import plotly.graph_objects as go
|
|
|
58 |
|
59 |
df['Average Accuracy (Original and G2B)'] = (df['Average G2B Accuracy'] + df['Average Original Accuracy']) / 2
|
60 |
|
61 |
+
df['Adjusted Robustness Score'] = df['Average Accuracy (Original and G2B)'] - 0.25 - df['Average Difference'].abs()
|
|
|
62 |
df['Adjusted Robustness Score'] = df['Adjusted Robustness Score'].round(2)
|
63 |
|
64 |
|