Commit
·
59dbde8
1
Parent(s):
a225edb
Put abilitiy difference back into zero-one space
Browse files- app.py +2 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -8,6 +8,7 @@ import pandas as pd
|
|
8 |
import gradio as gr
|
9 |
import seaborn as sns
|
10 |
import matplotlib.pyplot as plt
|
|
|
11 |
from datasets import load_dataset, get_dataset_split_names
|
12 |
from matplotlib.ticker import FixedLocator, StrMethodFormatter
|
13 |
|
@@ -31,7 +32,7 @@ def compare(df, model_1, model_2):
|
|
31 |
values='value',
|
32 |
)
|
33 |
|
34 |
-
return view[model_1] - view[model_2]
|
35 |
|
36 |
#
|
37 |
#
|
|
|
8 |
import gradio as gr
|
9 |
import seaborn as sns
|
10 |
import matplotlib.pyplot as plt
|
11 |
+
from scipy.special import expit
|
12 |
from datasets import load_dataset, get_dataset_split_names
|
13 |
from matplotlib.ticker import FixedLocator, StrMethodFormatter
|
14 |
|
|
|
32 |
values='value',
|
33 |
)
|
34 |
|
35 |
+
return expit(view[model_1] - view[model_2])
|
36 |
|
37 |
#
|
38 |
#
|
requirements.txt
CHANGED
@@ -2,4 +2,5 @@ datasets
|
|
2 |
gradio
|
3 |
matplotlib
|
4 |
pandas
|
|
|
5 |
seaborn
|
|
|
2 |
gradio
|
3 |
matplotlib
|
4 |
pandas
|
5 |
+
scipy
|
6 |
seaborn
|