You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- when saying that students will do things in code, always say "in R"
116
+
- "you will be able to" (not "students will be able to", "the reader will be able to")
117
+
118
+
#### Equations
119
+
- make sure all equations get capitalized labels ("Equation \\@ref(blah)", not "equation below" or "equation above")
120
+
121
+
#### Figures
122
+
- make sure all figures get (capitalized) labels ("Figure \\@ref(blah)", not "figure below" or "figure above")
123
+
- make sure all figures get captions
124
+
- specify image widths in terms of linewidth percent (e.g. `out.width="70%"`)
125
+
- center align all images
126
+
- make sure we have permission for every figure/logo that we use
127
+
- Make sure all figures follow the visualization principles in Chapter 4
128
+
- Make sure axes are set appropriately to not inflate/deflate differences artificially *where it does not compromise clarity* (e.g. in the classification
129
+
chapter there are a few examples where zoomed-in accuracy axes are better than using the full range 0 to 1)
130
+
131
+
#### Tables
132
+
- make sure all tables get capitalized labels ("Table \\@ref(blah)", not "table below" or "table above")
133
+
- make sure all tables get captions
134
+
135
+
#### Note boxes
136
+
- note boxes should be typeset as quote boxes using `>` and start with **Note:**
137
+
138
+
#### Bibliography
139
+
- do not put "et al" or "and others"; always use the full list of authors, BibTeX will choose how to abbreviate
140
+
141
+
#### Naming conventions
142
+
- K-means (not $K$-\*, K means, Kmeans)
143
+
- K-nearest neighbors (not $K$-\*, K nearest neighbors, K nearest neighbor, use US spelling neighbor not neighbour). Note that "K-nearest neighbor" is not the singular form; "K-nearest neighbors" is
144
+
- K-NN (not $K$-\*, KNN, K NN, $K$NN, K-nn)
145
+
- local repository (not local computer)
146
+
- package (not library, meta package, meta-package)
147
+
- data science (not Data Science)
148
+
- data frame (not dataframe)
149
+
- data set (not dataset)
150
+
- scatter plot (not scatterplot)
151
+
- capitalize all initialisms and acronyms (URL not url, API not api, $K$-NN not $k$-nn)
152
+
- response variable (not target, output, label)
153
+
- predictor variable (not explanatory, feature)
154
+
- numerical variable (not quantitative variable)
155
+
- categorical variable (not class variable)
156
+
157
+
#### Punctuation
158
+
- emdashes should have no surrounding spaces. `This kind of typesetting—which is awesome—is correct!` and `Typesetting with spaces around em-dashes — which is bad — is not correct`
159
+
- make sure `\index` commands don't break punctuation spacing. E.g. `This is an item \index{item}; it is good` will typeset with an erroneous space after item, i.e. `This is an item ; it is good`
160
+
161
+
#### Common typos to check for
162
+
- RMPSE: should be RMSPE
163
+
- boostrap: should be bootstrap
164
+
165
+
#### Use American spelling
166
+
Generally the book uses American spelling. Some common British vs American and Canadian vs American gotchas:
167
+
- o vs ou: neighbor and color (not neighbour and colour)
168
+
- single vs double ell: labeling and labeled (not labelling and labelled)
169
+
- z vs s: summarize (not summarise)
170
+
- c vs s: defense (not defence)
171
+
- er vs re: center (not centre)
172
+
173
+
#### PDF Output
174
+
These are absolute last steps when rendering the PDF output:
175
+
- Look for and fix bad line breaks (e.g. with only one word on the next line, orphans, and widows)
176
+
- Look for and fix bad line wraps in code and text
177
+
- Look for and fix bad figure placement (falling off page, going over the side)
178
+
- Look for `??` in the PDF (broken refs)
179
+
- Look in the index for near-duplicates, and merge if needed
180
+
- Make sure the 3D figures (and the text around them that refers to clicking and dragging) are properly modified for the PDF output
181
+
- Make sure all markdown label-replaced URLs (of the form `[blah](url)`) will make
182
+
sense in the hardcopy book version (i.e. nothing like "click this"). Many links appear in the additional resources: make sure the
183
+
text-replacement of the URL contains enough information for someone to find the resource (without being able to click the link)
184
+
185
+
#### HTML Output
186
+
- Look for broken references (I *think* these end up as `??`)
187
+
- Look for uncentered images
188
+
189
+
## Updating the textbook data
190
+
Data sets are collected and curated by `data/retrieve_data.ipynb`. To run that notebook in the Docker container type the following in the terminal:
66
191
67
-
- For R code block labels, use the format `##-[name with only alphanumeric + hyphens]` where the `##` is the 2-digit chapter number, e.g. `03-test-name` for a label `test-name` in chapter 3
- The files `index.Rmd` and `##-name.Rmd` are [R-markdown](https://rmarkdown.rstudio.com/) chapter contents to be parsed by [Bookdown](https://bookdown.org/)
0 commit comments