Description Usage Arguments Value

View source: R/sid_main_algorithm.R

Get the goodness (accuracy) of a tree.

1 2 | ```
sid_tree_goodness(data_train, data_test, tree, classifier, R = 10,
parallel = TRUE, stats = FALSE)
``` |

`data_train` |
Training data. |

`data_test` |
Testing data. |

`classifier` |
A classifier function, default is svm (from the e1071 package). |

`R` |
Number of replications. Default is 10. |

`parallel` |
Calculate in parallel (Boolean, default is |

`stats` |
Return statistics for the tree. Default is |

The average goodness.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.