Skip to content

Commit e7e63a7

Browse files
author
Jared Weed
committed
Merge branch 'master' into development
2 parents 8b03a9d + d595ebf commit e7e63a7

File tree

9 files changed

+1656
-37
lines changed

9 files changed

+1656
-37
lines changed

projects/boston_housing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project requires **Python 2.7** and the following Python libraries installe
1111

1212
You will also need to have software installed to run and execute an [iPython Notebook](http://ipython.org/notebook.html)
1313

14-
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), i pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
14+
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
1515

1616
### Code
1717

projects/creating_customer_segments/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This project requires **Python 2.7** and the following Python libraries installe
1212

1313
You will also need to have software installed to run and execute an [iPython Notebook](http://ipython.org/notebook.html)
1414

15-
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), i pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
15+
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
1616

1717
### Code
1818

@@ -29,4 +29,4 @@ This will open the iPython Notebook software and project file in your browser.
2929

3030
## Data
3131

32-
The dataset used in this project is included as `customers.csv`. You can find more information on this dataset on the [UCI Machine Learning Repository](https://archive.ics.uci.edu/ml/datasets/Wholesale+customers) page.
32+
The dataset used in this project is included as `customers.csv`. You can find more information on this dataset on the [UCI Machine Learning Repository](https://archive.ics.uci.edu/ml/datasets/Wholesale+customers) page.

projects/smartcab/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Template code is provided in the `smartcab/agent.py` python file. Additional sup
1414

1515
In a terminal or command window, navigate to the top-level project directory `smartcab/` (that contains this README) and run one of the following commands:
1616

17-
```python smartcab/agent.py```
17+
```python smartcab/agent.py```
1818
```python -m smartcab.agent```
1919

2020
This will run the `agent.py` file and execute your agent code.

projects/student_intervention/README.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This project requires **Python 2.7** and the following Python libraries installe
1111

1212
You will also need to have software installed to run and execute an [iPython Notebook](http://ipython.org/notebook.html)
1313

14-
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), i pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
14+
Udacity recommends our students install [Anaconda](https://www.continuum.io/downloads), a pre-packaged Python distribution that contains all of the necessary libraries and software for this project.
1515

1616
### Code
1717

@@ -30,34 +30,34 @@ This will open the iPython Notebook software and project file in your browser.
3030

3131
The dataset used in this project is included as `student-data.csv`. This dataset has the following attributes:
3232

33-
- `school` ? student's school (binary: "GP" or "MS")
34-
- `sex` ? student's sex (binary: "F" - female or "M" - male)
35-
- `age` ? student's age (numeric: from 15 to 22)
36-
- `address` ? student's home address type (binary: "U" - urban or "R" - rural)
37-
- `famsize` ? family size (binary: "LE3" - less or equal to 3 or "GT3" - greater than 3)
38-
- `Pstatus` ? parent's cohabitation status (binary: "T" - living together or "A" - apart)
39-
- `Medu` ? mother's education (numeric: 0 - none, 1 - primary education (4th grade), 2 -€“ 5th to 9th grade, 3 - secondary education or 4 -€“ higher education)
40-
- `Fedu` ? father's education (numeric: 0 - none, 1 - primary education (4th grade), 2 - 5th to 9th grade, 3 - secondary education or 4 -€“ higher education)
41-
- `Mjob` ? mother's job (nominal: "teacher", "health" care related, civil "services" (e.g. administrative or police), "at_home" or "other")
42-
- `Fjob` ? father's job (nominal: "teacher", "health" care related, civil "services" (e.g. administrative or police), "at_home" or "other")
43-
- `reason` ? reason to choose this school (nominal: close to "home", school "reputation", "course" preference or "other")
44-
- `guardian` ? student's guardian (nominal: "mother", "father" or "other")
45-
- `traveltime` ? home to school travel time (numeric: 1 - <15 min., 2 - 15 to 30 min., 3 - 30 min. to 1 hour, or 4 - >1 hour)
46-
- `studytime` ? weekly study time (numeric: 1 - <2 hours, 2 - 2 to 5 hours, 3 - 5 to 10 hours, or 4 - >10 hours)
47-
- `failures` ? number of past class failures (numeric: n if 1<=n<3, else 4)
48-
- `schoolsup` ? extra educational support (binary: yes or no)
49-
- `famsup` ? family educational support (binary: yes or no)
50-
- `paid` ? extra paid classes within the course subject (Math or Portuguese) (binary: yes or no)
51-
- `activities` ? extra-curricular activities (binary: yes or no)
52-
- `nursery` ? attended nursery school (binary: yes or no)
53-
- `higher` ? wants to take higher education (binary: yes or no)
54-
- `internet` ? Internet access at home (binary: yes or no)
55-
- `romantic` ? with a romantic relationship (binary: yes or no)
56-
- `famrel` ? quality of family relationships (numeric: from 1 - very bad to 5 - excellent)
57-
- `freetime` ? free time after school (numeric: from 1 - very low to 5 - very high)
58-
- `goout` ? going out with friends (numeric: from 1 - very low to 5 - very high)
59-
- `Dalc` ? workday alcohol consumption (numeric: from 1 - very low to 5 - very high)
60-
- `Walc` ? weekend alcohol consumption (numeric: from 1 - very low to 5 - very high)
61-
- `health` ? current health status (numeric: from 1 - very bad to 5 - very good)
62-
- `absences` ? number of school absences (numeric: from 0 to 93)
63-
- `passed` ? did the student pass the final exam (binary: yes or no)
33+
- `school` : student's school (binary: "GP" or "MS")
34+
- `sex` : student's sex (binary: "F" - female or "M" - male)
35+
- `age` : student's age (numeric: from 15 to 22)
36+
- `address` : student's home address type (binary: "U" - urban or "R" - rural)
37+
- `famsize` : family size (binary: "LE3" - less or equal to 3 or "GT3" - greater than 3)
38+
- `Pstatus` : parent's cohabitation status (binary: "T" - living together or "A" - apart)
39+
- `Medu` : mother's education (numeric: 0 - none, 1 - primary education (4th grade), 2 - 5th to 9th grade, 3 - secondary education or 4 - higher education)
40+
- `Fedu` : father's education (numeric: 0 - none, 1 - primary education (4th grade), 2 - 5th to 9th grade, 3 - secondary education or 4 - higher education)
41+
- `Mjob` : mother's job (nominal: "teacher", "health" care related, civil "services" (e.g. administrative or police), "at_home" or "other")
42+
- `Fjob` : father's job (nominal: "teacher", "health" care related, civil "services" (e.g. administrative or police), "at_home" or "other")
43+
- `reason` : reason to choose this school (nominal: close to "home", school "reputation", "course" preference or "other")
44+
- `guardian` : student's guardian (nominal: "mother", "father" or "other")
45+
- `traveltime` : home to school travel time (numeric: 1 - <15 min., 2 - 15 to 30 min., 3 - 30 min. to 1 hour, or 4 - >1 hour)
46+
- `studytime` : weekly study time (numeric: 1 - <2 hours, 2 - 2 to 5 hours, 3 - 5 to 10 hours, or 4 - >10 hours)
47+
- `failures` : number of past class failures (numeric: n if 1<=n<3, else 4)
48+
- `schoolsup` : extra educational support (binary: yes or no)
49+
- `famsup` : family educational support (binary: yes or no)
50+
- `paid` : extra paid classes within the course subject (Math or Portuguese) (binary: yes or no)
51+
- `activities` : extra-curricular activities (binary: yes or no)
52+
- `nursery` : attended nursery school (binary: yes or no)
53+
- `higher` : wants to take higher education (binary: yes or no)
54+
- `internet` : Internet access at home (binary: yes or no)
55+
- `romantic` : with a romantic relationship (binary: yes or no)
56+
- `famrel` : quality of family relationships (numeric: from 1 - very bad to 5 - excellent)
57+
- `freetime` : free time after school (numeric: from 1 - very low to 5 - very high)
58+
- `goout` : going out with friends (numeric: from 1 - very low to 5 - very high)
59+
- `Dalc` : workday alcohol consumption (numeric: from 1 - very low to 5 - very high)
60+
- `Walc` : weekend alcohol consumption (numeric: from 1 - very low to 5 - very high)
61+
- `health` : current health status (numeric: from 1 - very bad to 5 - very good)
62+
- `absences` : number of school absences (numeric: from 0 to 93)
63+
- `passed` : did the student pass the final exam (binary: yes or no)

projects/titanic_survival_exploration/Titanic_Survival_Exploration.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
"collapsed": true
291291
},
292292
"source": [
293-
"Examining the survival statistics, the majority of males younger then 10 survived the ship sinking, whereas most males age 10 or older *did not survive* the ship sinking. Let's continue to build on our previous prediction: If a passenger was female, then we will predict they survive. If a passenger was male and younger than 10, then we will also predict they survive. Otherwise, we will predict they do not survive. \n",
293+
"Examining the survival statistics, the majority of males younger than 10 survived the ship sinking, whereas most males age 10 or older *did not survive* the ship sinking. Let's continue to build on our previous prediction: If a passenger was female, then we will predict they survive. If a passenger was male and younger than 10, then we will also predict they survive. Otherwise, we will predict they do not survive. \n",
294294
"Fill in the missing code below so that the function will make this prediction. \n",
295295
"**Hint:** You can start your implementation of this function using the prediction code you wrote earlier from `predictions_1`."
296296
]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# 项目 0: 入门与基础
2+
## 预测泰坦尼克号乘客幸存率
3+
4+
### 安装要求
5+
这个项目要求使用 **Python 2.7** 以及安装下列python库
6+
7+
- [NumPy](http://www.numpy.org/)
8+
- [Pandas](http://pandas.pydata.org)
9+
- [matplotlib](http://matplotlib.org/)
10+
- [scikit-learn](http://scikit-learn.org/stable/)
11+
12+
13+
你还需要安装和运行 [Jupyter Notebook](http://jupyter.readthedocs.io/en/latest/install.html#optional-for-experienced-python-developers-installing-jupyter-with-pip)
14+
15+
16+
优达学城推荐学生安装 [Anaconda](https://www.continuum.io/downloads),一个包含了项目需要的所有库和软件的 Python 发行版本。
17+
18+
### 代码
19+
20+
事例代码在 `titanic_survival_exploration_cn.ipynb` 文件中,辅助代码在 `titanic_visualizations.py` 文件中。尽管已经提供了一些代码帮助你上手,你还是需要补充些代码使得项目要求的功能能够成功实现。
21+
22+
### 运行
23+
24+
在命令行中,确保当前目录为 `titanic_survival_exploration/` 文件夹的最顶层(目录包含本 README 文件),运行下列命令。
25+
26+
```jupyter notebook titanic_survival_exploration.ipynb```
27+
28+
这会启动 Jupyter Notebook 把项目文件打开在你的浏览器中。
29+
30+
### 数据
31+
32+
这个项目的数据包含在 `titanic_data.csv` 文件中。文件包含下列特征:
33+
34+
- **Survived**:是否存活(0代表否,1代表是)
35+
- **Pclass**:社会阶级(1代表上层阶级,2代表中层阶级,3代表底层阶级)
36+
- **Name**:船上乘客的名字
37+
- **Sex**:船上乘客的性别
38+
- **Age**:船上乘客的年龄(可能存在 `NaN`
39+
- **SibSp**:乘客在船上的兄弟姐妹和配偶的数量
40+
- **Parch**:乘客在船上的父母以及小孩的数量
41+
- **Ticket**:乘客船票的编号
42+
- **Fare**:乘客为船票支付的费用
43+
- **Cabin**:乘客所在船舱的编号(可能存在 `NaN`
44+
- **Embarked**:乘客上船的港口(C 代表从 Cherbourg 登船,Q 代表从 Queenstown 登船,S 代表从 Southampton 登船)

0 commit comments

Comments
 (0)