Repository navigation
Expand file tree
/
Copy pathsummary.bartMachine.Rd
More file actions
57 lines (49 loc) · 1.86 KB
/
Copy pathsummary.bartMachine.Rd
File metadata and controls
57 lines (49 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bart_package_summaries.R
\name{summary.bartMachine}
\alias{summary.bartMachine}
\title{Summarizes information about a \code{bartMachine} object.}
\usage{
\method{summary}{bartMachine}(object, verbose = TRUE, ...)
}
\arguments{
\item{object}{An object of class ``bartMachine''.}
\item{verbose}{If TRUE, prints summary output.}
\item{...}{Parameters that are ignored.}
}
\value{
None.
}
\description{
Provides a quick summary of the BART model.
}
\details{
Gives the version number of the \code{bartMachine} package used to build this \code{additiveBartMachine} object and if the object
models either ``regression'' or ``classification.'' Gives the amount of training data and the dimension of feature space. Prints
the amount of time it took to build the model, how many processor cores were used to during its construction, as well as the
number of burn-in and posterior Gibbs samples were used.
If the model is for regression, it prints the estimate of \eqn{\sigma^2} before the model was constructed as well as after so
the user can inspect how much variance was explained.
If the model was built using the \code{run_in_sample = TRUE} parameter in \code{\link{build_bart_machine}} and is for regression, the summary L1,
L2, rmse, Pseudo-\eqn{R^2} are printed as well as the p-value for the tests of normality and zero-mean noise. If the model is for classification, a confusion matrix is printed.
}
\examples{
\dontrun{
#Regression example
#generate Friedman data
set.seed(11)
n = 200
p = 5
X = data.frame(matrix(runif(n * p), ncol = p))
y = 10 * sin(pi* X[ ,1] * X[,2]) +20 * (X[,3] -.5)^2 + 10 * X[ ,4] + 5 * X[,5] + rnorm(n)
##build BART regression model
bart_machine = bartMachine(X, y)
##print out details
summary(bart_machine)
##Also, the default print works too
bart_machine
}
}
\author{
Adam Kapelner
}