Skip to content

Commit 6d1fa9b

Browse files
dollar sign fixes in reg1
1 parent 3bced8e commit 6d1fa9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/regression1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -644,8 +644,8 @@ Alright, now the `mean_test_score` variable actually has values of the RMSPE
644644
for different numbers of neighbors. Finally, the `sem_test_score` variable
645645
contains the standard error of our cross-validation RMSPE estimate, which
646646
is a measure of how uncertain we are in the mean value. Roughly, if
647-
your estimated mean RMSPE is 100,000 and standard error is 1,000, you can expect the
648-
*true* RMSPE to be somewhere roughly between 99,000 and 101,000 (although it
647+
your estimated mean RMSPE is \$100,000 and standard error is \$1,000, you can expect the
648+
*true* RMSPE to be somewhere roughly between \$99,000 and \$101,000 (although it
649649
may fall outside this range).
650650

651651
{numref}`fig:07-choose-k-knn-plot` visualizes how the RMSPE varies with the number of neighbors $K$.
@@ -1059,9 +1059,9 @@ predictor *as part of the model tuning process* (e.g., if we are running forward
10591059
in the chapter on evaluating and tuning classification models),
10601060
then we must compare the RMSPE estimated using only the training data via cross-validation.
10611061
Looking back, the estimated cross-validation RMSPE for the single-predictor
1062-
model was {glue:text}`cv_RMSPE`.
1062+
model was \${glue:text}`cv_RMSPE`.
10631063
The estimated cross-validation RMSPE for the multivariable model is
1064-
{glue:text}`cv_RMSPE_2pred`.
1064+
\${glue:text}`cv_RMSPE_2pred`.
10651065
Thus in this case, we did not improve the model
10661066
by a large amount by adding this additional predictor.
10671067

@@ -1090,7 +1090,7 @@ glue("RMSPE_mult", "{0:,.0f}".format(RMSPE_mult))
10901090

10911091
This time, when we performed KNN regression on the same data set, but also
10921092
included number of bedrooms as a predictor, we obtained a RMSPE test error
1093-
of {glue:text}`RMSPE_mult`.
1093+
of \${glue:text}`RMSPE_mult`.
10941094
{numref}`fig:07-knn-mult-viz` visualizes the model's predictions overlaid on top of the data. This
10951095
time the predictions are a surface in 3D space, instead of a line in 2D space, as we have 2
10961096
predictors instead of 1.

0 commit comments

Comments
 (0)