Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
沈秋雨
/
lyric_rhyme
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
ed19c4ee
...
ed19c4ee32fb1dcd5fddf847b7e6d295bc4f5d17
authored
2026-06-03 16:50:54 +0800
by
沈秋雨
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复hard数据集误判
1 parent
49008962
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
POSTGRES_MIGRATION.md
scripts/evaluate_postgres.py
POSTGRES_MIGRATION.md
View file @
ed19c4e
...
...
@@ -450,9 +450,9 @@ python -m lyric_dedup.cli generate-eval-set \
```
bash
python scripts/evaluate_postgres.py
\
--dsn postgresql:///lyric_dedup
\
--csv data/generated_eval/eval_5000.csv
\
--csv data/generated_eval/eval_
hard_
5000.csv
\
--base-dir data/generated_eval
\
--out outputs/results/postgres_eval_5000.csv
--out outputs/results/postgres_eval_
hard_
5000.csv
```
它会:
...
...
scripts/evaluate_postgres.py
View file @
ed19c4e
...
...
@@ -220,7 +220,11 @@ def _recall_candidates(
def
_exclude_record_ids_for_eval_row
(
row
:
dict
[
str
,
str
])
->
list
[
str
]:
if
row
.
get
(
"sample_type"
)
==
"negative_real_holdout_full_song"
and
row
.
get
(
"source_record_id"
):
holdout_sample_types
=
{
"negative_real_holdout_full_song"
,
"negative_near_neighbor_holdout_full_song"
,
}
if
row
.
get
(
"sample_type"
)
in
holdout_sample_types
and
row
.
get
(
"source_record_id"
):
return
[
row
[
"source_record_id"
]]
return
[]
...
...
Please
register
or
sign in
to post a comment