norm_xml: Generate PMML elements that using 'NormContinuous'

Description Usage Arguments Value Examples

Description

Generate the 'NormContinuous' part for the whole PMML transformation segment 'LocalTransformation'.

Usage

1
2
norm_xml(featureName, featureRange, hatTips = featureRange,
  newFieldName = featureName, purpose = "norm")

Arguments

featureName

Character string indicating name of the variable that is to be normalized/transformed.

featureRange

Vector of two float numbers indicating range (clean limits) of the variable that is to be transformed.

hatTips

Vector of float numbers representing inner cut points generated by function 'gen_buckets()',

newFieldName

Character string indicating new name for the derived feature

purpose

Character string indicating type of 'NormContinuous', e.g., 'normalization', 'hat'.

Value

XML file representing PMML element 'LocalTransformation' that contains 'DerivedField' with transformation 'NormContinuous'.

Examples

1
2
normFICO <- norm_xml(featureName = 'CreditScore', featureRange = c(450, 950),
    hatTips = BatchSMB_UsedPlat[[1]]$bands, newFieldName = 'FICO', purpose = 'hat')

hongqi0314/PRAuto.PMML documentation built on May 6, 2019, 11:30 a.m.