featureVector | R Documentation |
Compute a feature vector of constant length which can be used as
an input for supervised penalty learning. The output is a target
interval of log(penalty) values that achieve minimum incorrect
labels (see targetIntervals
).
featureVector(data.vec)
data.vec |
numeric vector of ordered data. |
Numeric vector of features.
Toby Dylan Hocking <toby.hocking@r-project.org> [aut, cre]
x <- rnorm(10)
penaltyLearning::featureVector(x)
if(requireNamespace("neuroblastoma")){
data(neuroblastoma, package="neuroblastoma", envir=environment())
one <- subset(neuroblastoma$profiles, profile.id=="1" & chromosome=="1")
(f.vec <- penaltyLearning::featureVector(one$logratio))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.