Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dmlc/xgboost
/ IsValid
Method
IsValid
src/tree/sample_position.h:19–19 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
return IsValid(nidx) ? nidx : ~nidx;
18
}
19
[[nodiscard]] bool static XGBOOST_HOST_DEV_INLINE IsValid(bst_node_t nidx) { return nidx >= 0; }
20
};
21
} // namespace xgboost::tree
Callers
2
ExpandWithLossGuide
Method · 0.45
Pop
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected