MCPcopy Create free account
hub / github.com/antmachineintelligence/mtgbmcode / Sign

Function Sign

include/LightGBM/utils/common.h:909–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

907
908template <typename T>
909static int Sign(T x) {
910 return (x > T(0)) - (x < T(0));
911}
912
913template <typename T>
914static T SafeLog(T x) {

Callers 7

InitMethod · 0.50
ConvertOutputMethod · 0.50
GetGradientsMethod · 0.50
GetGradientsMethod · 0.50
GetGradientsMethod · 0.50
ThresholdL1Method · 0.50

Calls 1

TClass · 0.50

Tested by

no test coverage detected