bbl-class {bbl} | R Documentation |
bbl
for Boltzmann Bayes LearnerClass bbl
for Boltzmann Bayes Learner
## S4 method for signature 'bbl' show(object) ## S4 method for signature 'bbl' x[i, j, remove.const = TRUE]
object |
Object of class |
x |
Object of class |
i |
Row index to keep |
j |
Not used. |
remove.const |
Remove predictor levels not found in data. |
show
: Display bbl
object content
Show predictor levels, response groups, and sample size.
[
: Subsetting of bbl
object along rows (sample index)
predictors
List of vectors of characters, each corresponding to predictor factor levels.
groups
Vector of characters for response factor levels.
data
Data frame for training data. Expected to contain both predictors and response.
y
Character column name of response data in data
.
h
Bias parameters stored after training. List of length
equal to no. of response groups, each of which is a list of
length equal to no. of predictors, containing vectors of
length equal to each predictor factor levels:
h_i^{(y)}(x) represented by
h[[y]][[i]][x]
.
J
Interaction parameters stored after training. List of
length equal to no. of response groups, each of which is a
list of lists of dimension m \times m, where m
is the number of predictors. Each element is a matrix of
dimension L_i \times L_j, where L_i and L_j
are numbers of factor levels in predictor i
and j
:
J_{ij}^{(y)}(x_1,x_2) represented by
J[[y]][[i]][[j]][x1,x2]
.
lz
Slot used to store log partition function of response groups.
data <- data.frame(y=c('g1','g2','g2','g1','g1','g2'), x1=c(0,0,1,2,0,1), x2=c('a','a','b','a','b','b')) x <- bbl(data) x x[1:3,]