Skip to content

Commit

Permalink
fix twp typos
Browse files Browse the repository at this point in the history
  • Loading branch information
leetschau committed Jul 12, 2019
1 parent 3e176b1 commit 4090c70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ch4applied.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Predict on the 1st group predictors with KNN (k = 5):
ktrain1 <- boston13[isTraining, c('zn', 'indus', 'chas', 'nox')]
ktest1 <- boston13[-isTraining, c('zn', 'indus', 'chas', 'nox')]
ktrain.result <- boston13$crime.rate[isTraining]
kmod1 <- knn(ktrain1, ktest1, ktrain.result1, k = 5)
kmod1 <- knn(ktrain1, ktest1, ktrain.result, k = 5)
mean(kmod1 == boston13$crime.rate[-isTraining])
```

Expand Down
2 changes: 1 addition & 1 deletion ch4conceptual.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ The length of each side for $p$ dimensional hypercube is $0.1^{\frac1p}$.

# Question 5

5a: When the Bayes decision boundary is linear, QDA performs better than QDA on training set.
5a: When the Bayes decision boundary is linear, QDA performs better than LDA on training set.
LDA performs better than QDA on test set.

5b: When the Bayes boundary is non-linear, QDA performs better than LDA on both training and test sets.
Expand Down

0 comments on commit 4090c70

Please sign in to comment.