MCPcopy Create free account
hub / github.com/alibaba/euler / GetBinaryFeatureValueNum

Method GetBinaryFeatureValueNum

euler/core/graph/node.cc:668–675  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

666}
667
668int32_t Node::GetBinaryFeatureValueNum() const {
669 int32_t num = 1, pre = 0;
670 for (size_t i = 0; i < binary_features_idx_.size(); ++i) {
671 num = std::max(binary_features_idx_[i] - pre, num);
672 pre = binary_features_idx_[i];
673 }
674 return num;
675}
676
677} // namespace euler

Callers 2

TESTFunction · 0.45
TESTFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36