| 845 | } |
| 846 | |
| 847 | static inline void AddValuesToShapValues( |
| 848 | const TVector<TShapValue>& shapValuesByLeaf, |
| 849 | int approxDimension, |
| 850 | TVector<TVector<double>>* shapValues |
| 851 | ) { |
| 852 | for (const TShapValue& shapValue : shapValuesByLeaf) { |
| 853 | for (int dimension : xrange(approxDimension)) { |
| 854 | (*shapValues)[dimension][shapValue.Feature] += shapValue.Value[dimension]; |
| 855 | } |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | void CalcShapValuesForDocumentMulti( |
| 860 | const TFullModel& model, |
no test coverage detected