MCPcopy Create free account
hub / github.com/catboost/catboost / TFeaturePosition

Class TFeaturePosition

catboost/libs/model/features.h:16–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <tuple>
15
16struct TFeaturePosition {
17 int Index = -1;
18 int FlatIndex = -1;
19public:
20 TFeaturePosition() = default;
21
22 TFeaturePosition(int index, int flatIndex)
23 : Index(index)
24 , FlatIndex(flatIndex)
25 {}
26
27 bool operator==(const TFeaturePosition& other) const {
28 return std::tie(Index, FlatIndex) ==
29 std::tie(other.Index, other.FlatIndex);
30 }
31 bool operator!=(const TFeaturePosition& other) const {
32 return !(*this == other);
33 }
34
35 Y_SAVELOAD_DEFINE(Index, FlatIndex);
36};
37
38struct TFeatureBase {
39public:

Callers 6

TFloatFeatureMethod · 0.85
TCatFeatureMethod · 0.85
TTextFeatureMethod · 0.85
TEmbeddingFeatureMethod · 0.85
BinarizeFeaturesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected