Skip to content

Commit b85bd79

Browse files
committed
smartcab project desc
1 parent 3732a57 commit b85bd79

File tree

2 files changed

+23
-51
lines changed

2 files changed

+23
-51
lines changed

projects/smartcab/project_description.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ This project uses the following software and Python libraries:
2020
If you do not have Python installed yet, it is highly recommended that you install the [Anaconda](http://continuum.io/downloads) distribution of Python, which already has the above packages and more included. Make sure that you select the Python 2.7 installer and not the Python 3.x installer. `pygame` can then be installed using one of the following commands:
2121

2222
Mac: `conda install -c https://conda.anaconda.org/quasiben pygame`
23-
Windows: `conda install -c https://conda.anaconda.org/tlatorre pygame`
24-
Linux: `conda install -c https://conda.anaconda.org/prkrekel pygame`
23+
Windows: `conda install -c https://conda.anaconda.org/prkrekel pygame`
24+
Linux: `conda install -c https://conda.anaconda.org/tlatorre pygame`
2525

2626
## Fixing Common PyGame Problems
2727

projects/titanic_survival_exploration/titanic_survival_exploration.ipynb

Lines changed: 21 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525
{
2626
"cell_type": "code",
2727
"execution_count": null,
28-
"metadata": {
29-
"collapsed": false
30-
},
28+
"metadata": {},
3129
"outputs": [],
3230
"source": [
3331
"# Import libraries necessary for this project\n",
@@ -73,9 +71,7 @@
7371
{
7472
"cell_type": "code",
7573
"execution_count": null,
76-
"metadata": {
77-
"collapsed": false
78-
},
74+
"metadata": {},
7975
"outputs": [],
8076
"source": [
8177
"# Store the 'Survived' feature in a new variable and remove it from the dataset\n",
@@ -100,9 +96,7 @@
10096
{
10197
"cell_type": "code",
10298
"execution_count": null,
103-
"metadata": {
104-
"collapsed": false
105-
},
99+
"metadata": {},
106100
"outputs": [],
107101
"source": [
108102
"def accuracy_score(truth, pred):\n",
@@ -137,9 +131,7 @@
137131
{
138132
"cell_type": "code",
139133
"execution_count": null,
140-
"metadata": {
141-
"collapsed": false
142-
},
134+
"metadata": {},
143135
"outputs": [],
144136
"source": [
145137
"def predictions_0(data):\n",
@@ -170,9 +162,7 @@
170162
{
171163
"cell_type": "code",
172164
"execution_count": null,
173-
"metadata": {
174-
"collapsed": false
175-
},
165+
"metadata": {},
176166
"outputs": [],
177167
"source": [
178168
"print accuracy_score(outcomes, predictions)"
@@ -190,16 +180,14 @@
190180
"metadata": {},
191181
"source": [
192182
"***\n",
193-
"Let's take a look at whether the feature **Sex** has any indication of survival rates among passengers using the `survival_stats` function. This function is defined in the `titanic_visualizations.py` Python script included with this project. The first two parameters passed to the function are the RMS Titanic data and passenger survival outcomes, respectively. The third parameter indicates which feature we want to plot survival statistics across. \n",
183+
"Let's take a look at whether the feature **Sex** has any indication of survival rates among passengers using the `survival_stats` function. This function is defined in the `visuals.py` Python script included with this project. The first two parameters passed to the function are the RMS Titanic data and passenger survival outcomes, respectively. The third parameter indicates which feature we want to plot survival statistics across. \n",
194184
"Run the code cell below to plot the survival outcomes of passengers based on their sex."
195185
]
196186
},
197187
{
198188
"cell_type": "code",
199189
"execution_count": null,
200-
"metadata": {
201-
"collapsed": false
202-
},
190+
"metadata": {},
203191
"outputs": [],
204192
"source": [
205193
"vs.survival_stats(data, outcomes, 'Sex')"
@@ -217,9 +205,7 @@
217205
{
218206
"cell_type": "code",
219207
"execution_count": null,
220-
"metadata": {
221-
"collapsed": false
222-
},
208+
"metadata": {},
223209
"outputs": [],
224210
"source": [
225211
"def predictions_1(data):\n",
@@ -252,9 +238,7 @@
252238
{
253239
"cell_type": "code",
254240
"execution_count": null,
255-
"metadata": {
256-
"collapsed": false
257-
},
241+
"metadata": {},
258242
"outputs": [],
259243
"source": [
260244
"print accuracy_score(outcomes, predictions)"
@@ -279,9 +263,7 @@
279263
{
280264
"cell_type": "code",
281265
"execution_count": null,
282-
"metadata": {
283-
"collapsed": false
284-
},
266+
"metadata": {},
285267
"outputs": [],
286268
"source": [
287269
"vs.survival_stats(data, outcomes, 'Age', [\"Sex == 'male'\"])"
@@ -301,9 +283,7 @@
301283
{
302284
"cell_type": "code",
303285
"execution_count": null,
304-
"metadata": {
305-
"collapsed": false
306-
},
286+
"metadata": {},
307287
"outputs": [],
308288
"source": [
309289
"def predictions_2(data):\n",
@@ -337,9 +317,7 @@
337317
{
338318
"cell_type": "code",
339319
"execution_count": null,
340-
"metadata": {
341-
"collapsed": false
342-
},
320+
"metadata": {},
343321
"outputs": [],
344322
"source": [
345323
"print accuracy_score(outcomes, predictions)"
@@ -369,9 +347,7 @@
369347
{
370348
"cell_type": "code",
371349
"execution_count": null,
372-
"metadata": {
373-
"collapsed": false
374-
},
350+
"metadata": {},
375351
"outputs": [],
376352
"source": [
377353
"vs.survival_stats(data, outcomes, 'Age', [\"Sex == 'male'\", \"Age < 18\"])"
@@ -389,9 +365,7 @@
389365
{
390366
"cell_type": "code",
391367
"execution_count": null,
392-
"metadata": {
393-
"collapsed": false
394-
},
368+
"metadata": {},
395369
"outputs": [],
396370
"source": [
397371
"def predictions_3(data):\n",
@@ -423,9 +397,7 @@
423397
{
424398
"cell_type": "code",
425399
"execution_count": null,
426-
"metadata": {
427-
"collapsed": false
428-
},
400+
"metadata": {},
429401
"outputs": [],
430402
"source": [
431403
"print accuracy_score(outcomes, predictions)"
@@ -472,23 +444,23 @@
472444
],
473445
"metadata": {
474446
"kernelspec": {
475-
"display_name": "Python 2",
447+
"display_name": "Python 3",
476448
"language": "python",
477-
"name": "python2"
449+
"name": "python3"
478450
},
479451
"language_info": {
480452
"codemirror_mode": {
481453
"name": "ipython",
482-
"version": 2
454+
"version": 3
483455
},
484456
"file_extension": ".py",
485457
"mimetype": "text/x-python",
486458
"name": "python",
487459
"nbconvert_exporter": "python",
488-
"pygments_lexer": "ipython2",
489-
"version": "2.7.11"
460+
"pygments_lexer": "ipython3",
461+
"version": "3.6.0"
490462
}
491463
},
492464
"nbformat": 4,
493-
"nbformat_minor": 0
465+
"nbformat_minor": 1
494466
}

0 commit comments

Comments
 (0)