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
1708ba59
Commit
1708ba59
authored
Jun 06, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues with generic stuff
parent
f238e7db
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
73 deletions
+100
-73
ease/grade.py
+96
-69
ease/tests/test_model_accuracy.py
+4
-4
No files found.
ease/grade.py
View file @
1708ba59
This diff is collapsed.
Click to expand it.
ease/tests/test_model_accuracy.py
View file @
1708ba59
...
...
@@ -108,7 +108,7 @@ class GenericTest(object):
self
.
assertTrue
(
results
[
'success'
])
grader
=
Grader
(
results
)
grader
.
grade
(
self
.
text
[
0
])
results
=
grader
.
grade
(
self
.
text
[
0
])
self
.
assertTrue
(
results
[
'success'
])
def
test_scoring_accuracy
(
self
):
...
...
@@ -134,10 +134,10 @@ class GenericTest(object):
grader
=
Grader
(
results
)
test_text
=
{
'textual_values'
:
[
[
self
.
text
[
0
]
]],
'numeric_values'
:
[
[
1
]
]
'textual_values'
:
[
self
.
text
[
0
]],
'numeric_values'
:
[
1
]
}
grader
.
grade
(
test_text
)
results
=
grader
.
grade
(
test_text
)
self
.
assertTrue
(
results
[
'success'
])
class
PolarityTest
(
unittest
.
TestCase
,
GenericTest
):
...
...
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