Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
3cbc8fd8
Commit
3cbc8fd8
authored
Jun 16, 2014
by
Will Daly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #436 from edx/will/remove-duplicate-classifier-assignment
Will/remove duplicate classifier assignment
parents
ae34fdbb
a637a7a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
15 deletions
+1
-15
openassessment/assessment/api/ai.py
+1
-15
No files found.
openassessment/assessment/api/ai.py
View file @
3cbc8fd8
...
...
@@ -138,27 +138,13 @@ def on_init(submission_uuid, rubric=None, algorithm_id=None):
logger
.
exception
(
msg
)
raise
AIGradingInternalError
(
msg
)
try
:
classifier_set_candidates
=
AIClassifierSet
.
objects
.
filter
(
rubric
=
workflow
.
rubric
,
algorithm_id
=
algorithm_id
)[:
1
]
except
DatabaseError
as
ex
:
msg
=
(
u"An unexpected error occurred while scheduling the "
u"AI grading task for the submission with UUID {uuid}: {ex}"
)
.
format
(
uuid
=
submission_uuid
,
ex
=
ex
)
raise
AIGradingInternalError
(
msg
)
# If we find classifiers for this rubric/algorithm
# then associate the classifiers with the workflow
# and schedule a grading task.
# Otherwise, the task will need to be scheduled later,
# once the classifiers have been trained.
if
len
(
classifier_set_candidates
)
>
0
:
workflow
.
classifier_set
=
classifier_set_candidates
[
0
]
if
workflow
.
classifier_set
is
not
None
:
try
:
workflow
.
save
()
grading_tasks
.
grade_essay
.
apply_async
(
args
=
[
workflow
.
uuid
])
logger
.
info
((
u"Scheduled grading task for AI grading workflow with UUID {workflow_uuid} "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment