public Frame applyTargetEncoding ( Frame data , String targetColumnName , Map < String , Frame > targetEncodingMap , byte dataLeakageHandlingStrategy , String foldColumn , boolean withBlendedAvg , boolean imputeNAs , long seed ) { double defaultNoiseLevel = 0.01 ; int targetIndex = data . find ( targetColumnName ) ; Vec targetVec = data . vec ( targetIndex ) ; double noiseLevel = targetVec . isNumeric ( ) ? defaultNoiseLevel * ( targetVec . max ( ) - targetVec . min ( ) ) : defaultNoiseLevel ; return applyTargetEncoding ( data , targetColumnName , targetEncodingMap , dataLeakageHandlingStrategy , foldColumn , withBlendedAvg , noiseLevel , true , seed ) ; }
Overloaded for the case when user had not specified the noise parameter