Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merge for updating lab1_sol and lab2
  • Loading branch information
Jingwen Jiang committed Apr 18, 2019
2 parents 4467c9c + 0658742 commit acd7c9f
Showing 1 changed file with 15 additions and 38 deletions.
53 changes: 15 additions & 38 deletions labs/2019/lab2_sklearn_dt_knn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@
"metadata": {},
"outputs": [],
"source": [
"df['HBP'] = np.where(df['High Blood Pressure']==\"YES\", 1, 0)"
"# code"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Question: what percentage of people have diabetes?"
"### Question: what percentage of people have High Blood Pressure?"
]
},
{
Expand All @@ -172,7 +172,7 @@
"metadata": {},
"outputs": [],
"source": [
"df['HBP'].mean()"
"# code"
]
},
{
Expand Down Expand Up @@ -292,9 +292,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -311,7 +309,6 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true,
"scrolled": true
},
"outputs": [],
Expand All @@ -329,9 +326,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -347,9 +342,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -365,9 +358,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand Down Expand Up @@ -397,9 +388,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# code"
Expand Down Expand Up @@ -543,9 +532,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -562,9 +549,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -580,9 +565,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -598,9 +581,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand Down Expand Up @@ -641,9 +622,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand All @@ -665,9 +644,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# CODE"
Expand Down Expand Up @@ -700,7 +677,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.14"
"version": "2.7.16"
}
},
"nbformat": 4,
Expand Down

0 comments on commit acd7c9f

Please sign in to comment.