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

Method SetTestFold

library/cpp/linear_regression/benchmark/pool.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void TPool::TCVIterator::SetTestFold(const size_t testFoldNumber) {
45 TestFoldNumber = testFoldNumber;
46 Current = InstanceFoldNumbers.begin();
47 Advance();
48}
49
50bool TPool::TCVIterator::IsValid() const {
51 return Current != InstanceFoldNumbers.end();

Callers 1

QualityBenchmarkFunction · 0.80

Calls 2

AdvanceFunction · 0.50
beginMethod · 0.45

Tested by

no test coverage detected