Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Commonsense Persona-Grounded Dialogue Challenge Task 1 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
AIcrowd
Challenges
Commonsense Persona-Grounded Dialogue Challenge
Commonsense Persona-Grounded Dialogue Challenge Task 1 Starter kit
Commits
67d2c707
Commit
67d2c707
authored
1 year ago
by
Dipam Chakraborty
Browse files
Options
Downloads
Patches
Plain Diff
fix batching bug
parent
0411a16b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
local_evaluation.py
+2
-3
2 additions, 3 deletions
local_evaluation.py
with
2 additions
and
3 deletions
local_evaluation.py
+
2
−
3
View file @
67d2c707
...
...
@@ -37,9 +37,8 @@ def get_responses(agent, test_data, BATCH_SIZE):
for
turn_id
in
range
(
7
):
batch_inputs
=
[
test_data
[
i
][
f
"
turn_
{
turn_id
}
"
]
for
i
in
batch_idx
]
responses
=
agent
.
generate_responses
(
batch_inputs
)
for
resp
in
responses
:
for
bi
in
batch_idx
:
all_responses
[
bi
][
f
"
turn_
{
turn_id
}
"
]
=
resp
for
bi
,
resp
in
zip
(
batch_idx
,
responses
):
all_responses
[
bi
][
f
"
turn_
{
turn_id
}
"
]
=
resp
return
all_responses
def
evaluate
(
responses
,
test_data
):
...
...
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