Skip to content

Commit b48b3d1

Browse files
Joshua BernhardJoshua Bernhard
Joshua Bernhard
authored and
Joshua Bernhard
committed
update project 2 with finishied notebook in finding donors project folder
2 parents 2d30eb3 + 9fdeb54 commit b48b3d1

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed

projects/customer_segments/customer_segments.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,8 @@
121121
"\n",
122122
"* Fresh: 12000.2977\n",
123123
"* Milk: 5796.2\n",
124-
"* Grocery: 3071.9\n",
124+
"* Frozen: 3071.9\n",
125+
"* Grocery: 7951.2\n",
125126
"* Detergents_paper: 2881.4\n",
126127
"* Delicatessen: 1524.8\n",
127128
"\n",
@@ -820,21 +821,21 @@
820821
],
821822
"metadata": {
822823
"kernelspec": {
823-
"display_name": "Python 2",
824+
"display_name": "Python 3",
824825
"language": "python",
825-
"name": "python2"
826+
"name": "python3"
826827
},
827828
"language_info": {
828829
"codemirror_mode": {
829830
"name": "ipython",
830-
"version": 2
831+
"version": 3
831832
},
832833
"file_extension": ".py",
833834
"mimetype": "text/x-python",
834835
"name": "python",
835836
"nbconvert_exporter": "python",
836-
"pygments_lexer": "ipython2",
837-
"version": "2.7.12"
837+
"pygments_lexer": "ipython3",
838+
"version": "3.6.0"
838839
}
839840
},
840841
"nbformat": 4,

projects/finding_donors/finding_donors.ipynb

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@
467467
"| 2 | A | | 1 | 0 | 0 |\n",
468468
"\n",
469469
"Additionally, as with the non-numeric features, we need to convert the non-numeric target label, `'income'` to numerical values for the learning algorithm to work. Since there are only two possible categories for this label (\"<=50K\" and \">50K\"), we can avoid using one-hot encoding and simply encode these two categories as `0` and `1`, respectively. In code cell below, you will need to implement the following:\n",
470-
" - Use [`pandas.get_dummies()`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.get_dummies.html?highlight=get_dummies#pandas.get_dummies) to perform one-hot encoding on the `'features_raw'` data.\n",
470+
" - Use [`pandas.get_dummies()`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.get_dummies.html?highlight=get_dummies#pandas.get_dummies) to perform one-hot encoding on the `'features_log_minmax_transform'` data.\n",
471471
" - Convert the target label `'income_raw'` to numerical entries.\n",
472472
" - Set records with \"<=50K\" to `0` and records with \">50K\" to `1`."
473473
]
@@ -637,7 +637,7 @@
637637
"cell_type": "code",
638638
"execution_count": 65,
639639
"metadata": {
640-
"collapsed": false
640+
"collapsed": true
641641
},
642642
"outputs": [
643643
{
@@ -679,7 +679,6 @@
679679
"- Decision Trees\n",
680680
"- Ensemble Methods (Bagging, AdaBoost, Random Forest, Gradient Boosting)\n",
681681
"- K-Nearest Neighbors (KNeighbors)\n",
682-
"- Stochastic Gradient Descent Classifier (SGDC)\n",
683682
"- Support Vector Machines (SVM)\n",
684683
"- Logistic Regression"
685684
]
@@ -1292,21 +1291,26 @@
12921291
],
12931292
"metadata": {
12941293
"kernelspec": {
1295-
"display_name": "Python 2",
1294+
"display_name": "Python 3",
12961295
"language": "python",
1297-
"name": "python2"
1296+
"name": "python3"
12981297
},
12991298
"language_info": {
13001299
"codemirror_mode": {
13011300
"name": "ipython",
1302-
"version": 2
1301+
"version": 3
13031302
},
13041303
"file_extension": ".py",
13051304
"mimetype": "text/x-python",
13061305
"name": "python",
13071306
"nbconvert_exporter": "python",
1307+
<<<<<<< HEAD
13081308
"pygments_lexer": "ipython2",
13091309
"version": "2.7.13"
1310+
=======
1311+
"pygments_lexer": "ipython3",
1312+
"version": "3.6.0"
1313+
>>>>>>> 9fdeb5401039b5e0cb08048e236e1e661de673fd
13101314
}
13111315
},
13121316
"nbformat": 4,

0 commit comments

Comments
 (0)