View source: R/machinelearning-functions-knntl.R
thetas | R Documentation |
The possible weights to be considered is a sequence from 0 (favour
auxiliary data) to 1 (favour primary data). Each possible
combination of weights for nclass
classes must be
tested. The thetas
function produces a weight matrix
for nclass
columns (one for each class) with all possible
weight combinations (number of rows).
thetas(nclass, by = 0.5, length.out, verbose = TRUE)
nclass |
Number of marker classes |
by |
The increment of the weights. One of |
length.out |
The desired length of the weight sequence. |
verbose |
A |
A matrix with all possible theta weight combinations.
Lisa Breckels
dim(thetas(4, by = 0.5))
dim(thetas(4, by = 0.2))
dim(thetas(5, by = 0.2))
dim(thetas(5, length.out = 5))
dim(thetas(6, by = 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.