Skip to content

Commit

Permalink
addresses issue rasbt#71
Browse files Browse the repository at this point in the history
  • Loading branch information
rasbt committed Jun 7, 2018
1 parent 7497726 commit 24b74d2
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 8 deletions.
16 changes: 14 additions & 2 deletions code/ch06/ch06.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@
"# UCI machine learning repository, un-comment the following line\n",
"# of code to load the dataset from a local path:\n",
"\n",
"# df_wine = pd.read_csv('wdbc.data', header=None)\n",
"# df = pd.read_csv('wdbc.data', header=None)\n",
"\n",
"df.head()"
]
Expand Down Expand Up @@ -1661,7 +1661,19 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.4"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion code/ch06/ch06.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
# UCI machine learning repository, un-comment the following line
# of code to load the dataset from a local path:

# df_wine = pd.read_csv('wdbc.data', header=None)
# df = pd.read_csv('wdbc.data', header=None)

df.head()

Expand Down
16 changes: 14 additions & 2 deletions code/ch07/ch07.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@
" 'Color intensity', 'Hue', 'OD280/OD315 of diluted wines',\n",
" 'Proline']\n",
"\n",
"# if the Breast Cancer dataset is temporarily unavailable from the\n",
"# if the Wine dataset is temporarily unavailable from the\n",
"# UCI machine learning repository, un-comment the following line\n",
"# of code to load the dataset from a local path:\n",
"\n",
Expand Down Expand Up @@ -1568,7 +1568,19 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.1"
"version": "3.6.4"
},
"toc": {
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion code/ch07/ch07.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def get_params(self, deep=True):
'Color intensity', 'Hue', 'OD280/OD315 of diluted wines',
'Proline']

# if the Breast Cancer dataset is temporarily unavailable from the
# if the Wine dataset is temporarily unavailable from the
# UCI machine learning repository, un-comment the following line
# of code to load the dataset from a local path:

Expand Down
9 changes: 7 additions & 2 deletions docs/errata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ Dear Readers,

again, I tried my best to cut all the little typos, errors, and formatting bugs that slipped through the copy editing stage. Even so, while I think it is just human to have a little typo here and there, I know that this can be quite annoying as a reader!

To turn those annoyances into something positive, I will donate $5 to [UNICEF USA](https://www.unicefusa.org), the US branch of the United Nations agency for raising funds to provide emergency food and healthcare for children in developing countries, for each little unreported buglet you find!
To turn those annoyances into something positive, I will donate $5 to [UNICEF USA](https://www.unicefusa.org), the US branch of the United Nations agency for raising funds to provide emergency food and healthcare for children in developing countries, for each little, previously unreported buglet you find and submit to the issue tracker.

Also below, I added a small leaderboard to keep track of the errata submissions and errors you found. Please let me know if you don't want to be explicitely mentioned in that list!


- Amount for the next donation: 60$
- Amount for the next donation: 65$
- Amount donated: 0$


Expand All @@ -24,6 +24,7 @@ Contributor list:
5. Elias Strehle ($5)
6. Oliver Tomic ($5)
7. Krishna Mohan ($5)
8. Jesse Blocher ($5)


<br>
Expand Down Expand Up @@ -58,6 +59,10 @@ pg. 91

On the top of the page, it says "Here, p (i | t ) is the proportion of the samples that belong to class c." The "*c*" should be changed to *i*.

pg. 101

The text description references "entropy" as the impurity criterion being used in the `RandomForestClassifier`. However, `"gini"` is used in the code example, and thus "entropy" should be changed to "gini" in the text as well.

pg. 136

The print version is incorrectly shows
Expand Down

0 comments on commit 24b74d2

Please sign in to comment.