-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
automation-api/yival_experiments/notebooks/compare_evaluators.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import duckdb | ||
import polars as pl | ||
|
||
|
||
results = pl.read_parquet("../output/results.parquet") | ||
|
||
results.columns | ||
|
||
df = results.filter(pl.col("model_id").str.contains("llama")) | ||
|
||
|
||
conn = duckdb.connect() | ||
|
||
|
||
conn.query("select * from df") | ||
|
||
q = """select | ||
* | ||
from | ||
df | ||
where | ||
not ( | ||
llama3_evaluator_correctness = vertex_ai_evaluator_correctness | ||
and gpt4_evaluator_correctness = vertex_ai_evaluator_correctness | ||
and ( | ||
simple_evaluator_matching <> 0 | ||
and simple_evaluator_matching = gpt4_evaluator_correctness | ||
) | ||
) | ||
and simple_evaluator_matching <> 0""" | ||
|
||
diffs = conn.query(q) | ||
|
||
conn.query("select count(*) from df") | ||
conn.query("select count(*) from diffs") | ||
|
||
diffs.to_csv("to_check.csv") | ||
|
||
1281 / 30780 | ||
|