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

Method ReadFromFeatures

library/cpp/linear_regression/benchmark/pool.cpp:86–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void TPool::ReadFromFeatures(const TString& featuresPath) {
87 TFileInput featuresIn(featuresPath);
88 TString featuresString;
89 while (featuresIn.ReadLine(featuresString)) {
90 this->push_back(TInstance::FromFeaturesString(featuresString));
91 }
92}
93
94TPool::TCVIterator TPool::CrossValidationIterator(const size_t foldsCount, const EIteratorType iteratorType) const {
95 return TPool::TCVIterator(*this, foldsCount, iteratorType);

Callers 1

mainFunction · 0.80

Calls 2

ReadLineMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected