Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Amazon KDD Cup 2024 Starter Kit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
der2933
Amazon KDD Cup 2024 Starter Kit
Commits
28e1c881
Commit
28e1c881
authored
1 year ago
by
spmohanty
Browse files
Options
Downloads
Patches
Plain Diff
Updat local eval
parent
929296c8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
local_evaluation.py
+11
-0
11 additions, 0 deletions
local_evaluation.py
with
11 additions
and
0 deletions
local_evaluation.py
+
11
−
0
View file @
28e1c881
...
...
@@ -2,6 +2,7 @@ import pandas as pd
from
tqdm
import
tqdm
import
torch
import
numpy
as
np
import
os
from
sentence_transformers
import
SentenceTransformer
import
metrics
...
...
@@ -205,7 +206,17 @@ def get_task_parsers():
# Main execution function to load data, generate model outputs, evaluate, and aggregate scores
def
main
():
# Load development data
# Please download the development data from : https://www.aicrowd.com/challenges/meta-comprehensive-rag-benchmark-kdd-cup-2024/dataset_files
# and place it at: ./data/development.json
DATA_FILENAME
=
"
./data/development.json
"
if
not
os
.
path
.
exists
(
DATA_FILENAME
):
raise
FileNotFoundError
(
f
"
Development data file not found at
{
DATA_FILENAME
}
.
"
"
Please download the development data from : https://www.aicrowd.com/challenges/meta-comprehensive-rag-benchmark-kdd-cup-2024/dataset_files
"
"
and place it at: ./data/development.json
"
)
data_df
=
load_development_data
(
DATA_FILENAME
)
# Load the model from the user's custom configuration
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment