Skip to content

Commit 99d90ce

Browse files
authored
Merge pull request udacity#47 from udacity/nicky/p0-readme
Nicky/p0 readme
2 parents 2d1959b + 284bee9 commit 99d90ce

File tree

1 file changed

+37
-4
lines changed
  • projects_cn/titanic_survival_exploration

1 file changed

+37
-4
lines changed

projects_cn/titanic_survival_exploration/README.md

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,53 @@
1313
你还需要安装和运行 [Jupyter Notebook](http://jupyter.readthedocs.io/en/latest/install.html#optional-for-experienced-python-developers-installing-jupyter-with-pip)
1414

1515

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+
```
1729

1830
### 代码
1931
2032
事例代码在 `titanic_survival_exploration_cn.ipynb` 文件中,辅助代码在 `titanic_visualizations.py` 文件中。尽管已经提供了一些代码帮助你上手,你还是需要补充些代码使得项目要求的功能能够成功实现。
2133

2234
### 运行
2335
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+
```
2741
2842
这会启动 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+
2951
52+
53+
54+
55+
56+
57+
58+
59+
60+
61+
62+
3063
### 数据
3164
3265
这个项目的数据包含在 `titanic_data.csv` 文件中。文件包含下列特征:

0 commit comments

Comments
 (0)