Skip to content

Commit 42c1b6b

Browse files
Merge pull request #232 from sof202/fix-scikit-questions
fix: rectify problems in scikit-learn questions (Python for Data Analysis)
2 parents e0877bb + 876e4dd commit 42c1b6b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

individual_modules/python_for_data_analysis/Python_ScikitLearn.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,7 +2394,7 @@
23942394
}
23952395
],
23962396
"source": [
2397-
"display_quiz(\"questions/sciktilearn_question_kmeans.json\")"
2397+
"display_quiz(\"questions/scikitlearn_question_kmeans.json\")"
23982398
]
23992399
},
24002400
{
@@ -3447,7 +3447,7 @@
34473447
],
34483448
"source": [
34493449
"from jupyterquiz import display_quiz\n",
3450-
"display_quiz(\"questions/sciktilearn_question_decision_tree.json\")"
3450+
"display_quiz(\"questions/scikitlearn_question_decision_tree.json\")"
34513451
]
34523452
},
34533453
{

individual_modules/python_for_data_analysis/questions/sciktilearn_question_decision_tree.json renamed to individual_modules/python_for_data_analysis/questions/scikitlearn_question_decision_tree.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{
33
"question": "Given the decision tree model that has been created, if the NO2 air pollution concentration was predicted from a wind speed of 0.5 m/s, what estimation would be made?",
44
"type": "numeric",
5-
"precision":3,
5+
"precision":5,
66
"answers": [
77
{
88
"type": "value",
9-
"value": 24.264,
9+
"value": 31.277,
1010
"correct": true,
1111
"feedback": "Correct."
1212
},
@@ -16,4 +16,4 @@
1616
}
1717
]
1818
}
19-
]
19+
]

individual_modules/python_for_data_analysis/questions/scikitlearn_question_linear_regression_question.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{
33
"question": "Given the linear regression model above, between the wind speed and NO2 concentrations, based on the intercept and slope approximation, what would be the expected NO2 concentration when the wind speed is 15 km/h? Give the value to two decimal places.",
44
"type": "numeric",
5-
"precision":2,
5+
"precision":4,
66
"answers": [
77
{
88
"type": "value",
9-
"value": 10.43,
9+
"value": 18.04,
1010
"correct": true,
1111
"feedback": "Correct."
1212
},
@@ -16,4 +16,4 @@
1616
}
1717
]
1818
}
19-
]
19+
]

0 commit comments

Comments
 (0)