| 4 | #include <util/stream/file.h> |
| 5 | |
| 6 | TInstance TInstance::FromFeaturesString(const TString& featuresString) { |
| 7 | TInstance instance; |
| 8 | |
| 9 | TStringBuf featuresStringBuf(featuresString); |
| 10 | |
| 11 | featuresStringBuf.NextTok('\t'); // query id |
| 12 | instance.Goal = FromString(featuresStringBuf.NextTok('\t')); |
| 13 | featuresStringBuf.NextTok('\t'); // url |
| 14 | instance.Weight = FromString(featuresStringBuf.NextTok('\t')); |
| 15 | |
| 16 | while (featuresStringBuf) { |
| 17 | instance.Features.push_back(FromString(featuresStringBuf.NextTok('\t'))); |
| 18 | } |
| 19 | |
| 20 | return instance; |
| 21 | } |
| 22 | |
| 23 | TPool::TCVIterator::TCVIterator(const TPool& parentPool, const size_t foldsCount, const EIteratorType iteratorType) |
| 24 | : ParentPool(parentPool) |
nothing calls this directly
no test coverage detected