Description Usage Arguments Examples
The ggEnsTrend
function displays the average test accuracies for every new classifier added to the ensemble, as constructed by the cfBuild
function.
1 2 |
ensObj |
The R object as generated by |
xlabel |
A sub title for the x axis (optional field). |
ylabel |
A sub title for the y axis (optional field). |
showText |
Boolean value, by default set to |
xlims |
A vector of numeric values that specifies the minimum and maximum values in the x axis. |
ylims |
A vector of numeric values that specifies the minimum and maximum values in the y axis. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
data(iris)
irisClass <- iris[,5]
irisData <- iris[,-5]
ens <- cfBuild(irisData, irisClass, bootNum = 100, ensNum = 100, parallel = TRUE,
cpus = 4, type = "SOCK")
# Plot the trend of the test accuracies in the ensemble
ggEnsTrend(ens)
# Plot with text
ggEnsTrend(ens, showText = TRUE)
# Plot with text; set different limits on y axis
ggEnsTrend(ens, showText = TRUE, ylims=c(90, 100))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.