model_nbr: A naive Bayes label ranking model

Description Usage Arguments Value

View source: R/model_nbr.R

Description

This is an auxiliary function to build a necessary inputs to predict rankings.

Usage

1
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.


labelrank documentation built on May 20, 2017, 12:38 a.m.

Search within the labelrank package
Search all R packages, documentation and source code