| 350 | } |
| 351 | |
| 352 | ui32 TFeaturesLayout::GetFeatureCount(EFeatureType type) const noexcept { |
| 353 | switch (type) { |
| 354 | case EFeatureType::Float: |
| 355 | return GetFloatFeatureCount(); |
| 356 | case EFeatureType::Categorical: |
| 357 | return GetCatFeatureCount(); |
| 358 | case EFeatureType::Text: |
| 359 | return GetTextFeatureCount(); |
| 360 | case EFeatureType::Embedding: |
| 361 | return GetEmbeddingFeatureCount(); |
| 362 | } |
| 363 | Y_UNREACHABLE(); |
| 364 | } |
| 365 | |
| 366 | bool TFeaturesLayout::HasSparseFeatures(bool checkOnlyAvailable) const noexcept { |
| 367 | return FindIf( |
no test coverage detected