Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
908
template <typename T>
909
static int Sign(T x) {
910
return (x > T(0)) - (x < T(0));
911
}
912
913
template <typename T>
914
static T SafeLog(T x) {
Callers
7
Init
Method · 0.50
ConvertOutput
Method · 0.50
GetGradients
Method · 0.50
GetGradients
Method · 0.50
GetGradients
Method · 0.50
ThresholdL1
Method · 0.50
CalculateSplittedLeafOutput
Method · 0.50
Calls
1
T
Class · 0.50
Tested by
no test coverage detected