| 365 | } |
| 366 | |
| 367 | static TVector<double> GetUnpackedShapValues( |
| 368 | const TVector<double>& shapValuesInternal, |
| 369 | const TVector<TVector<int>>& combinationClassFeatures, |
| 370 | size_t flatFeatureCount |
| 371 | ){ |
| 372 | TVector<double> unpackedShapValues(flatFeatureCount + 1); |
| 373 | unpackedShapValues.resize(flatFeatureCount + 1); |
| 374 | UnpackInternalShapsForDocumentOneDimension( |
| 375 | shapValuesInternal, |
| 376 | combinationClassFeatures, |
| 377 | &unpackedShapValues |
| 378 | ); |
| 379 | // set mean value |
| 380 | unpackedShapValues.back() = shapValuesInternal.back(); |
| 381 | return unpackedShapValues; |
| 382 | } |
| 383 | |
| 384 | static TVector<TVector<double>> GetProbabilityMeanValues( |
| 385 | const TVector<TVector<TVector<double>>>& shapValues, // [refIdx][dim][feature] |
no test coverage detected