-
Notifications
You must be signed in to change notification settings - Fork 0
/
results.sync.py
53 lines (45 loc) · 1.11 KB
/
results.sync.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# %%
import pandas as pd
# %%
chatgpt = pd.read_csv(f"chatgpt.csv")
gpt4 = pd.read_csv(f"gpt4.csv")
# %%
print(sum(chatgpt["correct"] == "yes") / len(chatgpt) * 100)
print(sum(gpt4["correct"] == "yes") / len(gpt4) * 100)
# %%
chatgptwrong = chatgpt[chatgpt["correct"] == "no"][
["answer", "guess", "thinking", "explanation"]
]
gpt4wrong = gpt4[gpt4["correct"] == "no"][
["answer", "guess", "thinking", "explanation"]
]
# %%
i = 2
# %%
print(chatgpt.iloc[i]["answer"])
print(chatgptwrong.iloc[i]["guess"])
print()
print(chatgptwrong.iloc[i]["thinking"])
print()
print(chatgptwrong.iloc[i]["explanation"])
# %%
print(gpt4wrong.iloc[i]["answer"])
print(gpt4wrong.iloc[i]["guess"])
print()
print(gpt4wrong.iloc[i]["thinking"])
print()
print(gpt4wrong.iloc[i]["explanation"])
# %%
math = pd.read_csv(f"is_math.csv")
chatgpt["is_math"] = math["is_math"]
gpt4["is_math"] = math["is_math"]
print(
sum(chatgpt[chatgpt["is_math"] == 1]["correct"] == "yes")
/ len(chatgpt[chatgpt["is_math"] == 1])
* 100
)
print(
sum(gpt4[gpt4["is_math"] == 1]["correct"] == "yes")
/ len(gpt4[gpt4["is_math"] == 1])
* 100
)