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
1e575001
Commit
1e575001
authored
Jun 12, 2014
by
gradyward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up the essay_set.py file and propogated changes through other files.
parent
da78277e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
3 deletions
+3
-3
ease/essay_set.py
+0
-0
ease/grade.py
+1
-1
ease/model_creator.py
+1
-1
ease/predictor_set.py
+1
-1
No files found.
ease/essay_set.py
View file @
1e575001
This diff is collapsed.
Click to expand it.
ease/grade.py
View file @
1e575001
...
...
@@ -43,7 +43,7 @@ def grade(grader_data, submission):
results
=
{
'errors'
:
[],
'tests'
:
[],
'score'
:
0
,
'feedback'
:
""
,
'success'
:
False
,
'confidence'
:
0
}
has_error
=
False
grader_set
=
EssaySet
(
essaytype
=
"test"
)
grader_set
=
EssaySet
(
essay
_
type
=
"test"
)
feedback
=
{}
model
,
extractor
=
get_classifier_and_ext
(
grader_data
)
...
...
ease/model_creator.py
View file @
1e575001
...
...
@@ -82,7 +82,7 @@ def create_essay_set(text, score, prompt_string, generate_additional=True):
for
i
in
xrange
(
0
,
len
(
text
)):
x
.
add_essay
(
text
[
i
],
score
[
i
])
if
score
[
i
]
==
min
(
score
)
and
generate_additional
==
True
:
x
.
generate_additional_essays
(
x
.
_clean
_text
[
len
(
x
.
_clean_text
)
-
1
],
score
[
i
])
x
.
generate_additional_essays
(
x
.
_clean
ed_spelled_essays
[
len
(
x
.
_cleaned_spelled_essays
)
-
1
],
score
[
i
])
x
.
update_prompt
(
prompt_string
)
...
...
ease/predictor_set.py
View file @
1e575001
...
...
@@ -85,7 +85,7 @@ class PredictorSet(object):
#Create essay sets for textual features if needed
if
len
(
self
.
_textual_features
)
==
0
:
for
i
in
xrange
(
0
,
len
(
textual_features
)):
self
.
_essay_sets
.
append
(
essay_set
.
EssaySet
(
essaytype
=
self
.
_type
))
self
.
_essay_sets
.
append
(
essay_set
.
EssaySet
(
essay
_
type
=
self
.
_type
))
#Add numeric and textual features
self
.
_numeric_features
.
append
(
numeric_features
)
...
...
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