diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-11-08 15:31:41 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-11-08 15:31:41 +0100 |
| commit | 4b31680b3adc0db25ed4eca98e04c4226440ca84 (patch) | |
| tree | aeec4f750de5b1cae6dce81d1d72db17ea807b31 /analysis | |
| parent | b5a575c126e583feb973eff22c70e8a52a71b7f6 (diff) | |
Minor changes
Diffstat (limited to 'analysis')
| -rw-r--r-- | analysis/figures/tree.pdf | bin | 9593 -> 9593 bytes | |||
| -rw-r--r-- | analysis/knn.R | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/analysis/figures/tree.pdf b/analysis/figures/tree.pdf Binary files differindex 59b305a..1e7b753 100644 --- a/analysis/figures/tree.pdf +++ b/analysis/figures/tree.pdf diff --git a/analysis/knn.R b/analysis/knn.R index 3cfa2a9..729f332 100644 --- a/analysis/knn.R +++ b/analysis/knn.R @@ -64,5 +64,5 @@ tree_prop_table=round(prop.table(tree_cont_table),digits=2) print(paste0("Accuracy: KNN=",knn_accuracy,"% CART=",tree_accuracy,"%")) pdf("figures/tree.pdf") tree_plot=rpart.plot(tree,box.palette=as.list(viridis::viridis(4,begin=0.48))) -dev.off() +silent_call=dev.off() ## Notes: KNN accuracy jump to 76% and CART to 80% accuracy without the hint policy |
