Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
ease
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
ease
Commits
91b194c0
Commit
91b194c0
authored
Nov 20, 2012
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove code that assigns correctness--it is now centralized in lms
parent
cc8f91a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
7 deletions
+1
-7
grade.py
+1
-7
No files found.
grade.py
View file @
91b194c0
...
@@ -81,7 +81,7 @@ def grade(grader_path,grader_config,submission,sandbox=None):
...
@@ -81,7 +81,7 @@ def grade(grader_path,grader_config,submission,sandbox=None):
grader_path
=
os
.
path
.
join
(
base_path
,
util_functions
.
create_model_path
(
grader_path
))
grader_path
=
os
.
path
.
join
(
base_path
,
util_functions
.
create_model_path
(
grader_path
))
log
.
debug
(
"Grader path: {0}
\n
Submission: {1}"
.
format
(
grader_path
,
submission
))
log
.
debug
(
"Grader path: {0}
\n
Submission: {1}"
.
format
(
grader_path
,
submission
))
results
=
{
'errors'
:
[],
'tests'
:
[],
'
correct'
:
False
,
'
score'
:
0
,
'feedback'
:
""
,
'success'
:
False
}
results
=
{
'errors'
:
[],
'tests'
:
[],
'score'
:
0
,
'feedback'
:
""
,
'success'
:
False
}
has_error
=
False
has_error
=
False
...
@@ -112,12 +112,6 @@ def grade(grader_path,grader_config,submission,sandbox=None):
...
@@ -112,12 +112,6 @@ def grade(grader_path,grader_config,submission,sandbox=None):
has_error
=
True
has_error
=
True
if
not
has_error
:
if
not
has_error
:
#Determine maximum score and correctness of response
max_score
=
numpy
.
max
(
grader_data
[
'model'
]
.
classes_
)
if
results
[
'score'
]
/
float
(
max_score
)
>=
.
66
:
results
[
'correct'
]
=
True
else
:
results
[
'correct'
]
=
False
if
(
len
(
feedback
[
'prompt_overlap'
])
>
4
):
if
(
len
(
feedback
[
'prompt_overlap'
])
>
4
):
results
[
'score'
]
=
0
results
[
'score'
]
=
0
...
...
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