Commit 46e1761
authored
[k2] add KML support (#1411)
Previously, we've added a prediction kernel for xgboost and catboost, KML (see #983).
It wasn't supported in runtime-light till the current pull request. It includes:
* move the main inference logic into runtime-common dir
* get rid of exceptions
* gather required globals (mutable buffer, loaded model information) into context
* add php_info() function to write non-warning logs in runtime-common
* make KML functions and types depend on allocator
Co-authored-by: Alexander Polyakov <al.polyakov@vk.team>1 parent eeee03e commit 46e1761
71 files changed
Lines changed: 2864 additions & 1777 deletions
File tree
- builtin-functions/kphp-light/stdlib
- common
- runtime-common
- core/utils
- stdlib/kml
- runtime-light
- allocator
- k2-platform
- state
- stdlib
- file
- kml
- time
- utils
- runtime
- kphp_ml
- server
- tests
- phpt/modulite/012_package_not_required_in_derived_class/vendor
- python/tests/kml
- cases
- catboost_multiclass
- php
- data
- catboost_tiny
- php
- data
- xgb_ht_direct
- php
- data
- xgb_ht_remap
- php
- data
- models
- catboost
- xgboost
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 3 | | |
9 | 4 | | |
10 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
11 | 10 | | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | 204 | | |
207 | | - | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
221 | 218 | | |
222 | 219 | | |
223 | 220 | | |
224 | | - | |
225 | | - | |
226 | 221 | | |
227 | | - | |
228 | 222 | | |
229 | 223 | | |
230 | 224 | | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
231 | 232 | | |
232 | 233 | | |
233 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments