getValueKeyOfBayesFeatures: Obtain the type of the value of a Bayesian feature.

Description Usage Arguments Value Author(s) Examples

View source: R/bayesFeature.R

Description

Given a data.frame with one or multiple features as constructed by @seealso createFeatureForBayes and a name, extracts the type of the feature specified by name. Note that this is only used internally.

Usage

1
getValueKeyOfBayesFeatures(dfFeature, featName)

Arguments

dfFeature

a data.frame for a single feature or variable as constructed by @seealso createFeatureForBayes.

featName

the name of the feature or variable of which to obtain the type.

Value

the (internal) type of the feature.

Author(s)

Sebastian Hönel sebastian.honel@lnu.se

Examples

1
2
3
4
5
6
7
8
9
feats <- rbind(
  mmb::createFeatureForBayes(
    "Petal.Width", value = mean(iris$Petal.Width)),
  mmb::createFeatureForBayes(
    name = "Species", iris[1,]$Species, isLabel = TRUE)
)

print(mmb::getValueKeyOfBayesFeatures(feats, "Species"))
print(mmb::getValueKeyOfBayesFeatures(feats, "Petal.Width"))

mmb documentation built on Oct. 23, 2020, 5:21 p.m.