@@ -644,8 +644,8 @@ Alright, now the `mean_test_score` variable actually has values of the RMSPE
644
644
for different numbers of neighbors. Finally, the ` sem_test_score ` variable
645
645
contains the standard error of our cross-validation RMSPE estimate, which
646
646
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
649
649
may fall outside this range).
650
650
651
651
{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
1059
1059
in the chapter on evaluating and tuning classification models),
1060
1060
then we must compare the RMSPE estimated using only the training data via cross-validation.
1061
1061
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 ` .
1063
1063
The estimated cross-validation RMSPE for the multivariable model is
1064
- {glue: text }` cv_RMSPE_2pred ` .
1064
+ \$ {glue: text }` cv_RMSPE_2pred ` .
1065
1065
Thus in this case, we did not improve the model
1066
1066
by a large amount by adding this additional predictor.
1067
1067
@@ -1090,7 +1090,7 @@ glue("RMSPE_mult", "{0:,.0f}".format(RMSPE_mult))
1090
1090
1091
1091
This time, when we performed KNN regression on the same data set, but also
1092
1092
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 ` .
1094
1094
{numref}` fig:07-knn-mult-viz ` visualizes the model's predictions overlaid on top of the data. This
1095
1095
time the predictions are a surface in 3D space, instead of a line in 2D space, as we have 2
1096
1096
predictors instead of 1.
0 commit comments