Skip to content

Commit cee6883

Browse files
reg1 bug hunt py issue
1 parent 3dc29db commit cee6883

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/regression1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ is that we are now predicting numerical variables instead of categorical variabl
107107
```{note}
108108
You can usually tell whether a variable is numerical or
109109
categorical—and therefore whether you need to perform regression or
110-
classification—by taking two response variables X and Y from your data,
110+
classification—by taking the response variable for two observations X and Y from your data,
111111
and asking the question, "is response variable X *more* than response
112112
variable Y?" If the variable is categorical, the question will make no sense.
113113
(Is blue more than red? Is benign more than malignant?) If the variable is
@@ -175,8 +175,8 @@ want to predict (sale price) on the y-axis.
175175
Given that the y-axis unit is dollars in {numref}`fig:07-edaRegr`,
176176
we format the axis labels to put dollar signs in front of the house prices,
177177
as well as commas to increase the readability of the larger numbers.
178-
We can do this in `altair` by passing the `axis=alt.Axis(format="$,.0f")` argument
179-
to the `y` encoding channel in an `altair` specification.
178+
We can do this in `altair` by using `.axis(format="$,.0f")` on
179+
the `y` encoding channel.
180180
```
181181

182182
```{code-cell} ipython3

0 commit comments

Comments
 (0)