Rdocumentation
powered by
Learn R Programming
labelrank (version 0.1)
model_nbr: A naive Bayes label ranking model
Description
This is an auxiliary function to build a necessary inputs to predict rankings.
Usage
model_nbr(x, y, n = 1)
Arguments
x
is
n x p
matrix of
n
observations and
p
training attributes and can have continuous or nominal values.
y
is
n x j
matrix of training rankings (permutations).
n
is a parameter of 'memory'; that is, how fast past gets forgotten. (see details of
time_weights
).
Value
a list of size two: prior and conditional label ranking probabilities.