File tree Expand file tree Collapse file tree 1 file changed +37
-4
lines changed
projects_cn/titanic_survival_exploration Expand file tree Collapse file tree 1 file changed +37
-4
lines changed Original file line number Diff line number Diff line change 13
13
你还需要安装和运行 [ Jupyter Notebook] ( http://jupyter.readthedocs.io/en/latest/install.html#optional-for-experienced-python-developers-installing-jupyter-with-pip ) 。
14
14
15
15
16
- 优达学城推荐学生安装 [ Anaconda] ( https://www.continuum.io/downloads ) ,一个包含了项目需要的所有库和软件的 Python 发行版本。
16
+ 优达学城推荐学生安装 [ Anaconda] ( https://www.continuum.io/downloads ) ,一个包含了项目需要的所有库和软件的 Python 发行版本。[ 这里] ( https://classroom.udacity.com/nanodegrees/nd002/parts/0021345403/modules/317671873575460/lessons/5430778793/concepts/54140889150923 ) 介绍了如何安装Anaconda。
17
+
18
+ 如果你使用macOS系统并且对命令行比较熟悉,可以安装[ homebrew] ( http://brew.sh/ ) ,以及brew版python
19
+
20
+ ``` bash
21
+ $ brew install python
22
+ ```
23
+
24
+ 再用下列命令安装所需要的python库
25
+
26
+ ``` bash
27
+ $ pip install numpy pandas matplotlib scikit-learn scipy jupyter
28
+ ```
17
29
18
30
### 代码
19
31
20
32
事例代码在 ` titanic_survival_exploration_cn.ipynb ` 文件中,辅助代码在 ` titanic_visualizations.py ` 文件中。尽管已经提供了一些代码帮助你上手,你还是需要补充些代码使得项目要求的功能能够成功实现。
21
33
22
34
### 运行
23
35
24
- 在命令行中,确保当前目录为 ` titanic_survival_exploration/ ` 文件夹的最顶层(目录包含本 README 文件),运行下列命令。
25
-
26
- ``` jupyter notebook titanic_survival_exploration.ipynb ```
36
+ 在命令行中,确保当前目录为 ` titanic_survival_exploration/ ` 文件夹的最顶层(目录包含本 README 文件),运行下列命令:
37
+
38
+ ``` bash
39
+ $ jupyter notebook titanic_survival_exploration.ipynb
40
+ ```
27
41
28
42
这会启动 Jupyter Notebook 把项目文件打开在你的浏览器中。
43
+
44
+ 对jupyter不熟悉的同学可以看一下这两个链接:
45
+
46
+ - [ Jupyter使用视频教程] ( http://cn-static.udacity.com/mlnd/how_to_use_jupyter.mp4 )
47
+ - [ 为什么使用jupyter?] ( https://www.zhihu.com/question/37490497 )
48
+
49
+
50
+
29
51
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
30
63
### 数据
31
64
32
65
这个项目的数据包含在 ` titanic_data.csv ` 文件中。文件包含下列特征:
You can’t perform that action at this time.
0 commit comments