Skip to content

Commit 91a47db

Browse files
Merge pull request #10 from jhudsl/fixes
adding new images for fix to tree height prediction model based on girth
2 parents e7e7d7c + 00d11da commit 91a47db

31 files changed

+2679
-2367
lines changed

05-prediction.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ overallfit
17611761
We can then use the `collect_metrics()` function of the `tune` package to get the RMSE:
17621762

17631763
```{r}
1764-
collect_metrics(overallfit)
1764+
tune::collect_metrics(overallfit)
17651765
```
17661766

17671767
We can see that our RMSE is pretty similar for the testing data as well.
@@ -1937,8 +1937,8 @@ Recall that since we are using a categorical outcome variable, we want to use ac
19371937
```{r}
19381938
pred_species<-predict(iris_cat_wflow_fit, new_data = training_iris)
19391939
1940-
yardstick::accuracy(training_iris,
1941-
truth = Species, estimate = pred_species$.pred_class)
1940+
yardstick::accuracy_vec(
1941+
truth = training_iris$Species, estimate = pred_species$.pred_class)
19421942
```
19431943

19441944
It looks like 97% of the time our model correctly predicted the right species.
@@ -2966,7 +2966,7 @@ So, first we need to specify these values in a workflow. We can use the `select_
29662966

29672967

29682968
```{r}
2969-
tuned_RF_values<- select_best(tune_RF_results, "rmse")
2969+
tuned_RF_values<- select_best(tune_RF_results)
29702970
tuned_RF_values
29712971
```
29722972

0 commit comments

Comments
 (0)