| 84 | } |
| 85 | |
| 86 | void 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 | |
| 94 | TPool::TCVIterator TPool::CrossValidationIterator(const size_t foldsCount, const EIteratorType iteratorType) const { |
| 95 | return TPool::TCVIterator(*this, foldsCount, iteratorType); |