Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-analytics-data-api
Commits
073e4d32
Commit
073e4d32
authored
May 04, 2015
by
Brian Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fixture for answer_distribution. Change date on course data generation.
parent
ea030bf0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
31 deletions
+46
-31
analytics_data_api/fixtures/problem_response_answer_distribution.json
+45
-30
analytics_data_api/management/commands/generate_fake_course_data.py
+1
-1
No files found.
analytics_data_api/fixtures/problem_response_answer_distribution.json
View file @
073e4d32
...
...
@@ -3,7 +3,8 @@
"fields"
:
{
"answer_value"
:
"36.02736"
,
"correct"
:
false
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"EarthSciences/GP202/Spring2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228"
,
...
...
@@ -13,14 +14,15 @@
"problem_display_name"
:
"Earth Science Question"
,
"question_text"
:
"Enter your answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
1
},
{
"fields"
:
{
"answer_value"
:
"33.0"
,
"correct"
:
false
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"EarthSciences/GP202/Spring2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228"
,
...
...
@@ -30,14 +32,15 @@
"problem_display_name"
:
"Earth Science Question"
,
"question_text"
:
"Enter your answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
2
},
{
"fields"
:
{
"answer_value"
:
"27.51936482"
,
"correct"
:
true
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"EarthSciences/GP202/Spring2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228"
,
...
...
@@ -47,14 +50,15 @@
"problem_display_name"
:
"Earth Science Question"
,
"question_text"
:
"Enter your answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
3
},
{
"fields"
:
{
"answer_value"
:
"28.65"
,
"correct"
:
true
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"EarthSciences/GP202/Spring2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://EarthSciences/GP202/problem/d50bf059fa05468e94f61d52dd37f228"
,
...
...
@@ -64,14 +68,15 @@
"problem_display_name"
:
"Earth Science Question"
,
"question_text"
:
"Enter your answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
4
},
{
"fields"
:
{
"answer_value"
:
"line 15: mean(glm.pred==Direction)"
,
"correct"
:
true
,
"count"
:
95
,
"first_response_count"
:
0
,
"last_response_count"
:
95
,
"course_id"
:
"HumanitiesScience/StatLearning/Winter2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702"
,
...
...
@@ -81,14 +86,15 @@
"problem_display_name"
:
null
,
"question_text"
:
null
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
5
},
{
"fields"
:
{
"answer_value"
:
"line 22: Direction.2005=Smarket$Direction[!train]"
,
"correct"
:
false
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"HumanitiesScience/StatLearning/Winter2014"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702"
,
...
...
@@ -98,14 +104,15 @@
"problem_display_name"
:
null
,
"question_text"
:
null
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
6
},
{
"fields"
:
{
"answer_value"
:
"line 30: table(glm.pred,Direction.2005)"
,
"correct"
:
false
,
"count"
:
1
,
"first_response_count"
:
0
,
"last_response_count"
:
1
,
"course_id"
:
"HumanitiesScience/StatLearning/Winter2014"
,
"created"
:
"2014-06-24T17:13:12"
,
"module_id"
:
"i4x://HumanitiesScience/StatLearning/problem/3c53e173c9af464aa3afb8fac82c3702"
,
...
...
@@ -115,14 +122,15 @@
"problem_display_name"
:
null
,
"question_text"
:
null
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
7
},
{
"fields"
:
{
"answer_value"
:
"5.02"
,
"correct"
:
true
,
"count"
:
95
,
"first_response_count"
:
0
,
"last_response_count"
:
95
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -132,14 +140,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Enter an answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
8
},
{
"fields"
:
{
"answer_value"
:
"62"
,
"correct"
:
false
,
"count"
:
13
,
"first_response_count"
:
0
,
"last_response_count"
:
13
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -149,14 +158,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Enter an answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
9
},
{
"fields"
:
{
"answer_value"
:
"10.2"
,
"correct"
:
false
,
"count"
:
100
,
"first_response_count"
:
0
,
"last_response_count"
:
100
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:12"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -166,14 +176,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Enter an answer:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
10
},
{
"fields"
:
{
"answer_value"
:
null
,
"correct"
:
true
,
"count"
:
5
,
"first_response_count"
:
0
,
"last_response_count"
:
5
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -183,14 +194,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Randomized answer"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
11
},
{
"fields"
:
{
"answer_value"
:
null
,
"correct"
:
true
,
"count"
:
213
,
"first_response_count"
:
0
,
"last_response_count"
:
213
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -200,7 +212,7 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Randomized answer"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
12
},
...
...
@@ -208,7 +220,8 @@
"fields"
:
{
"answer_value"
:
"North America"
,
"correct"
:
true
,
"count"
:
95
,
"first_response_count"
:
0
,
"last_response_count"
:
95
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -218,14 +231,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Select from the choices below:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
13
},
{
"fields"
:
{
"answer_value"
:
"Africa"
,
"correct"
:
false
,
"count"
:
13
,
"first_response_count"
:
0
,
"last_response_count"
:
13
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:11"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -235,14 +249,15 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Select from the choices below:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
14
},
{
"fields"
:
{
"answer_value"
:
"Asia"
,
"correct"
:
false
,
"count"
:
100
,
"first_response_count"
:
0
,
"last_response_count"
:
100
,
"course_id"
:
"edX/DemoX/Demo_Course"
,
"created"
:
"2014-06-24T17:13:12"
,
"module_id"
:
"i4x://edX/DemoX.1/problem/05d289c5ad3d47d48a77622c4a81ec36"
,
...
...
@@ -252,7 +267,7 @@
"problem_display_name"
:
"Example problem"
,
"question_text"
:
"Select from the choices below:"
},
"model"
:
"v0.problemresponseanswerdistribution"
,
"model"
:
"v0.problem
firstlast
responseanswerdistribution"
,
"pk"
:
15
}
...
...
analytics_data_api/management/commands/generate_fake_course_data.py
View file @
073e4d32
...
...
@@ -184,7 +184,7 @@ class Command(BaseCommand):
course_id
=
'edX/DemoX/Demo_Course'
video_id
=
'0fac49ba'
video_module_id
=
'i4x-edX-DemoX-video-5c90cffecd9b48b188cbfea176bf7fe9'
start_date
=
datetime
.
datetime
(
year
=
201
4
,
month
=
1
,
day
=
1
,
tzinfo
=
timezone
.
utc
)
start_date
=
datetime
.
datetime
(
year
=
201
5
,
month
=
1
,
day
=
1
,
tzinfo
=
timezone
.
utc
)
num_weeks
=
options
[
'num_weeks'
]
if
num_weeks
:
...
...
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