|
3 | 3 |
|
4 | 4 | <!-- Title, version and logo: --> |
5 | 5 |
|
6 | | -# FFTrees 2.1.0 <img src = "man/figures/logo.png" align = "right" alt = "FFTrees" width = "160" /> |
| 6 | +# FFTrees 2.1.0.9001 <img src = "man/figures/logo.png" align = "right" alt = "FFTrees" width = "160" /> |
7 | 7 |
|
8 | 8 | <!-- Devel badges start: --> |
9 | 9 |
|
10 | | -<!-- [](https://CRAN.R-project.org/package=FFTrees) --> |
11 | | - |
12 | | -<!-- [](https://www.r-pkg.org/pkg/FFTrees) --> |
13 | | - |
14 | | -<!-- [](https://www.r-pkg.org/pkg/FFTrees) --> |
15 | | - |
16 | | -<!-- [](https://github.com/ndphillips/FFTrees/actions/workflows/R-CMD-check.yaml) --> |
17 | | - |
18 | | -<!-- Devel badges end. --> |
19 | | - |
20 | | -<!-- Release badges start: --> |
21 | | - |
22 | 10 | [](https://CRAN.R-project.org/package=FFTrees) |
| 12 | +[](https://www.r-pkg.org/pkg/FFTrees) |
24 | 13 | [](https://www.r-pkg.org/pkg/FFTrees) |
| 15 | +[](https://github.com/ndphillips/FFTrees/actions/workflows/R-CMD-check.yaml) |
| 16 | +<!-- Devel badges end. --> |
| 17 | + |
| 18 | +<!-- Release badges start: --> |
| 19 | + |
| 20 | +<!-- [](https://CRAN.R-project.org/package=FFTrees) --> |
| 21 | + |
| 22 | +<!-- [](https://www.r-pkg.org/pkg/FFTrees) --> |
| 23 | + |
26 | 24 | <!-- Release badges end. --> |
27 | 25 |
|
28 | 26 | <!-- ALL badges start: --> |
@@ -102,14 +100,50 @@ included in **FFTrees**: |
102 | 100 | library(FFTrees) # load package |
103 | 101 | ``` |
104 | 102 |
|
| 103 | +### Questions answered by FFTs |
| 104 | + |
| 105 | +<!-- 0. FFTs provide binary predictions: --> |
| 106 | + |
| 107 | +A *fast-and-frugal tree* (FFT) provides answers to binary prediction |
| 108 | +problems like: |
| 109 | + |
| 110 | +- Which of 2 categories should we predict for each individual case in |
| 111 | + the data? |
| 112 | +- How successful is this prediction process for a sample of cases? |
| 113 | + |
| 114 | +<!-- 1. Creating FFTs: --> |
| 115 | + |
| 116 | +To *create* FFTs, we must answer 2 key questions: |
| 117 | + |
| 118 | +- Which variables should we use to predict the criterion? |
| 119 | +- How should we combine those predictor variables into FFTs? |
| 120 | + |
| 121 | +<!-- 2. Measuring performance of FFTs: --> |
| 122 | + |
| 123 | +Once we have created FFTs, questions regarding their *performance* |
| 124 | +include: |
| 125 | + |
| 126 | +- How accurate are the predictions of a specific FFT? |
| 127 | +- How costly are the predictions of each algorithm? |
| 128 | + |
| 129 | +Answering these performance-related questions requires applying FFTs to |
| 130 | +data. |
| 131 | + |
| 132 | +<!-- The FFTrees package: --> |
| 133 | + |
| 134 | +The **FFTrees** package answers these questions by creating, evaluating, |
| 135 | +and visualizing FFTs. |
| 136 | + |
105 | 137 | ### Using data |
106 | 138 |
|
107 | | -The `heartdisease` data provides medical information for 303 patients |
108 | | -that were examined for heart disease. The full data contains a binary |
109 | | -criterion variable describing the true state of each patient and were |
110 | | -split into two subsets: A `heart.train` set for fitting decision trees, |
111 | | -and `heart.test` set for a testing these trees. Here are the first rows |
112 | | -and columns of both subsets of the `heartdisease` data: |
| 139 | +Any prediction problem requires some data that contains some predictors |
| 140 | +and a criterion variable. The `heartdisease` data provides medical |
| 141 | +information for 303 patients that were examined for heart disease. The |
| 142 | +full data contains a binary criterion variable describing the true state |
| 143 | +of each patient and were split into two subsets: A `heart.train` set for |
| 144 | +fitting decision trees, and `heart.test` set for a testing these trees. |
| 145 | +Here are the first rows and columns of both subsets of the |
| 146 | +`heartdisease` data: |
113 | 147 |
|
114 | 148 | - `heart.train` (the training / fitting data) describes 150 patients: |
115 | 149 |
|
@@ -145,22 +179,6 @@ logical values indicating the true state of each patient (i.e., `TRUE` |
145 | 179 | or `FALSE`, based on the patient suffering or not suffering from heart |
146 | 180 | disease) — from the values of potential predictors. |
147 | 181 |
|
148 | | -### Questions answered by FFTs |
149 | | - |
150 | | -To solve binary classification problems by FFTs, we must answer two key |
151 | | -questions: |
152 | | - |
153 | | -- Which of the variables should we use to predict the criterion? |
154 | | -- How should we use and combine predictor variables into FFTs? |
155 | | - |
156 | | -Once we have created some FFTs, additional questions include: |
157 | | - |
158 | | -- How accurate are the predictions of a specific FFT? |
159 | | -- How costly are the predictions of each algorithm? |
160 | | - |
161 | | -The **FFTrees** package answers these questions by creating, evaluating, |
162 | | -and visualizing FFTs. |
163 | | - |
164 | 182 | ### Creating fast-and-frugal trees (FFTs) |
165 | 183 |
|
166 | 184 | We use the main `FFTrees()` function to create FFTs for the |
@@ -195,7 +213,7 @@ plot(heart_fft, |
195 | 213 | main = "Heart Disease") |
196 | 214 | ``` |
197 | 215 |
|
198 | | -<img src="man/figures/README-example-heart-plot-1.png" width="650" style="display: block; margin: auto;" /> |
| 216 | +<img src="man/figures/README-example-heart-plot-1.png" alt="" width="650" style="display: block; margin: auto;" /> |
199 | 217 |
|
200 | 218 | **Figure 1**: A fast-and-frugal tree (FFT) predicting heart disease for |
201 | 219 | `test` data and its performance characteristics. |
@@ -239,7 +257,7 @@ plot(my_fft, |
239 | 257 | main = "My custom FFT") |
240 | 258 | ``` |
241 | 259 |
|
242 | | -<img src="man/figures/README-example-heart-verbal-1.png" width="650" style="display: block; margin: auto;" /> |
| 260 | +<img src="man/figures/README-example-heart-verbal-1.png" alt="" width="650" style="display: block; margin: auto;" /> |
243 | 261 |
|
244 | 262 | **Figure 2**: An FFT predicting heart disease created from a verbal |
245 | 263 | description. |
@@ -304,7 +322,7 @@ continue developing the package. |
304 | 322 |
|
305 | 323 | <!-- Examples uses/publications (with links): --> |
306 | 324 |
|
307 | | -By 2025, over 150 scientific publications have used or cited **FFTrees** |
| 325 | +By 2026, over 160 scientific publications have used or cited **FFTrees** |
308 | 326 | (see [Google |
309 | 327 | Scholar](https://scholar.google.com/scholar?oi=bibs&hl=en&cites=205528310591558601) |
310 | 328 | for the full list). Examples include: |
@@ -344,6 +362,6 @@ for the full list). Examples include: |
344 | 362 |
|
345 | 363 | ------------------------------------------------------------------------ |
346 | 364 |
|
347 | | -\[File `README.Rmd` last updated on 2025-09-03.\] |
| 365 | +\[File `README.Rmd` last updated on 2026-05-02.\] |
348 | 366 |
|
349 | 367 | <!-- eof. --> |
0 commit comments