andrewssobral commited on
Commit
b34166e
β€’
1 Parent(s): 2d06ac4

First version

Browse files
Files changed (49) hide show
  1. bayesian_ridge.zip +0 -3
  2. bayesian_ridge/config.pbtxt +0 -22
  3. catboost_regressor.zip +0 -3
  4. catboost_regressor/1/model.onnx +0 -3
  5. catboost_regressor/config.pbtxt +0 -23
  6. gaussian_nb.zip +0 -3
  7. gaussian_nb/config.pbtxt +0 -28
  8. gradient_boosting_regressor.zip +0 -3
  9. gradient_boosting_regressor/1/model.onnx +0 -3
  10. gradient_boosting_regressor/config.pbtxt +0 -23
  11. isolation_forest.zip +0 -3
  12. isolation_forest/1/model.onnx +0 -3
  13. isolation_forest/config.pbtxt +0 -23
  14. kmeans.zip +0 -3
  15. kmeans/1/model.onnx +0 -3
  16. kmeans/config.pbtxt +0 -23
  17. linear_regression.zip +0 -3
  18. linear_regression/1/model.onnx +0 -3
  19. linear_regression/config.pbtxt +0 -22
  20. logistic_regression.zip +0 -3
  21. logistic_regression/1/model.onnx +0 -3
  22. logistic_regression/config.pbtxt +0 -28
  23. one_class_svm.zip +0 -3
  24. one_class_svm/1/model.onnx +0 -3
  25. one_class_svm/config.pbtxt +0 -23
  26. random_forest_regressor.zip +0 -3
  27. random_forest_regressor/1/model.onnx +0 -3
  28. random_forest_regressor/config.pbtxt +0 -23
  29. adaboost_regressor/1/model.onnx β†’ scikit-learn/adaboost_regressor/adaboost_regressor.joblib +2 -2
  30. bayesian_ridge/1/model.onnx β†’ scikit-learn/adaboost_regressor/adaboost_regressor.onnx +2 -2
  31. adaboost_regressor.zip β†’ scikit-learn/adaboost_regressor/adaboost_regressor.zip +2 -2
  32. {gaussian_nb β†’ scikit-learn/adaboost_regressor/adaboost_regressor}/1/model.onnx +2 -2
  33. {adaboost_regressor β†’ scikit-learn/adaboost_regressor/adaboost_regressor}/config.pbtxt +1 -6
  34. scikit-learn/adaboost_regressor/convert2onnx.sh +1 -0
  35. scikit-learn/adaboost_regressor/model_packaging.sh +1 -0
  36. scikit-learn/adaboost_regressor/predict.py +29 -0
  37. scikit-learn/adaboost_regressor/train.py +25 -0
  38. scikit-learn/convert2onnx.py +64 -0
  39. scikit-learn/model_packaging.py +114 -0
  40. zip-models.sh β†’ scikit-learn/zip-models.sh +0 -0
  41. svm.zip +0 -3
  42. svm/1/model.onnx +0 -3
  43. svm/config.pbtxt +0 -28
  44. svr.zip +0 -3
  45. svr/1/model.onnx +0 -3
  46. svr/config.pbtxt +0 -22
  47. xgboost_classifier.zip +0 -3
  48. xgboost_classifier/1/xgboost.json +0 -1
  49. xgboost_classifier/config.pbtxt +0 -42
bayesian_ridge.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:32854f9ae9f3c52d77b5f82e01b922a9a8c24d94f69b8e57b81f9f2c2d0be811
3
- size 1114
 
 
 
 
bayesian_ridge/config.pbtxt DELETED
@@ -1,22 +0,0 @@
1
- name: "bayesian_ridge"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- kind: KIND_CPU
21
- }
22
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
catboost_regressor.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:d01e0594856abeaac0272af8e4ad39e1ba2cffdb668e8195a1a060618a9e16dd
3
- size 28334
 
 
 
 
catboost_regressor/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:c5de5ca99ede20ba1bd5dd6713cc43804b3b49c46373e23f9e95a6ddbcd0f837
3
- size 464729
 
 
 
 
catboost_regressor/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "catboost_regressor"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "features"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "predictions"
14
- data_type: TYPE_FP32
15
- dims: [ -1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
gaussian_nb.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:13aa7cbda022d3c04d3b6a707b98a25225c670d9d15475e0c2b60daac0f69f94
3
- size 1790
 
 
 
 
gaussian_nb/config.pbtxt DELETED
@@ -1,28 +0,0 @@
1
- name: "gaussian_nb"
2
- platform: "onnxruntime_onnx"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [-1, 4]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [-1]
16
- },
17
- {
18
- name: "probabilities"
19
- data_type: TYPE_FP32
20
- dims: [ -1, 3 ]
21
- }
22
- ]
23
- instance_group [
24
- {
25
- count: 1
26
- kind: KIND_CPU
27
- }
28
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
gradient_boosting_regressor.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:527c5f3bc948b92d426b3aa174786a81daf8a8e6ce1bf3a18d225af2d09f7745
3
- size 59410
 
 
 
 
gradient_boosting_regressor/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab5f4b47664adb226fd3bee5072d173e7cab3c94d76e6318ede98e885a754d26
3
- size 416882
 
 
 
 
gradient_boosting_regressor/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "gradient_boosting_regressor"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
isolation_forest.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:1bb99deadb0bcbc2e46c6ea11ff6a569a75031bce65c85574683d0d5dc11593a
3
- size 138357
 
 
 
 
isolation_forest/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:da17518a95b9b693e5f228e32e57cf4fd861100544eb84c4a6ec7bd165d06cd4
3
- size 865645
 
 
 
 
isolation_forest/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "isolation_forest"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [-1, 10]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [-1, 1]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
kmeans.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:30a1f4893a1592d28aa23caca104cab9d23f645a7d48ceee0cb2f216a1b2bfd9
3
- size 1391
 
 
 
 
kmeans/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:bef3666d398efcda268f25231ce5c1ed889d53e9ca24297cf7397d229085c435
3
- size 769
 
 
 
 
kmeans/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "kmeans"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 10 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [ -1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
linear_regression.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:10b78e1e3ad1a7c67727e6d573d77c872204bcea10f766ed92486b955ae6983f
3
- size 1142
 
 
 
 
linear_regression/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:ce71e18be7d33fbe243eb27963106479c4db4137379a094b08b48925fe9e0bf1
3
- size 293
 
 
 
 
linear_regression/config.pbtxt DELETED
@@ -1,22 +0,0 @@
1
- name: "linear_regression"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- kind: KIND_CPU
21
- }
22
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
logistic_regression.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:df4aaffa224851e8c95eec298a4d8c70db8005d58f8703d54f0151a4fa5bf5bf
3
- size 1360
 
 
 
 
logistic_regression/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:4277735dec751ee80aed7e19c447c91778ad6404e3baf95ab9c9b33f215b05c8
3
- size 533
 
 
 
 
logistic_regression/config.pbtxt DELETED
@@ -1,28 +0,0 @@
1
- name: "logistic_regression"
2
- platform: "onnxruntime_onnx"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [-1, 4]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [-1]
16
- },
17
- {
18
- name: "probabilities"
19
- data_type: TYPE_FP32
20
- dims: [ -1, 3 ]
21
- }
22
- ]
23
- instance_group [
24
- {
25
- count: 1
26
- kind: KIND_CPU
27
- }
28
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
one_class_svm.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:5749ca44e5dfb43332a5e29daa01218daf6d351709426bfdeafc4d45cfa2d61c
3
- size 2994
 
 
 
 
one_class_svm/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:e35a86da3a93565fc381345bcdb6519e14a1bd465468f4c97776977c4dd2d6ca
3
- size 3106
 
 
 
 
one_class_svm/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "one_class_svm"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [-1, 10]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [-1, 1]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
random_forest_regressor.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:b4f82d956dd2d109692027738eda8a340af7d2e37167ec5e1e2e11df001b3418
3
- size 99538
 
 
 
 
random_forest_regressor/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:6a08258e1cf5723a5ced62365c9f79300e23ae79ec083e7cc69cf95d23c10a11
3
- size 960704
 
 
 
 
random_forest_regressor/config.pbtxt DELETED
@@ -1,23 +0,0 @@
1
- name: "random_forest_regressor"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- count: 1
21
- kind: KIND_CPU
22
- }
23
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
adaboost_regressor/1/model.onnx β†’ scikit-learn/adaboost_regressor/adaboost_regressor.joblib RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:21d82089cf2fff02858ee333380dbdbb5e3edc87863b0e691b757d379b265ee9
3
- size 17375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cffc26892d443f79f917cb7169f615b72bb1f6c7ef6e65af7715c703e63ff1ec
3
+ size 32976
bayesian_ridge/1/model.onnx β†’ scikit-learn/adaboost_regressor/adaboost_regressor.onnx RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:72fc7d9cacf3674a2653a78ce0ac5914d711e454ddc29dd64f5037e55e796942
3
- size 293
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:692f2635f9137798cea947ed31c22c28b3cafc486ec505869778a182d24fdafc
3
+ size 25207
adaboost_regressor.zip β†’ scikit-learn/adaboost_regressor/adaboost_regressor.zip RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5e82ad761a6898be569f42edccb31b12102fccb9a61761a8a5b79578825df453
3
- size 3540
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4777680bec1a45eec0035092e2ad1477b8e4aeed9f112bd8d01ff3ac54556ecb
3
+ size 3890
{gaussian_nb β†’ scikit-learn/adaboost_regressor/adaboost_regressor}/1/model.onnx RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:410a36d1a5baee50b67df3ce06e2f48e6b60b88f5f79a079a3f726110caaf126
3
- size 1671
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:692f2635f9137798cea947ed31c22c28b3cafc486ec505869778a182d24fdafc
3
+ size 25207
{adaboost_regressor β†’ scikit-learn/adaboost_regressor/adaboost_regressor}/config.pbtxt RENAMED
@@ -5,15 +5,10 @@ input [
5
  {
6
  name: "float_input"
7
  data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
  }
10
  ]
11
  output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
  ]
18
  instance_group [
19
  {
 
5
  {
6
  name: "float_input"
7
  data_type: TYPE_FP32
8
+ dims: [ 8 ]
9
  }
10
  ]
11
  output [
 
 
 
 
 
12
  ]
13
  instance_group [
14
  {
scikit-learn/adaboost_regressor/convert2onnx.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ python ../convert2onnx.py california adaboost_regressor.joblib adaboost_regressor.onnx
scikit-learn/adaboost_regressor/model_packaging.sh ADDED
@@ -0,0 +1 @@
 
 
1
+ python ../model_packaging.py .
scikit-learn/adaboost_regressor/predict.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ import joblib
5
+
6
+ from sklearn.datasets import fetch_california_housing
7
+ from sklearn.model_selection import train_test_split
8
+ from sklearn.metrics import mean_squared_error
9
+
10
+ # Load the model from disk
11
+ loaded_model = joblib.load('adaboost_regressor.joblib')
12
+
13
+ # Set the random seed
14
+ random_seed = 0
15
+
16
+ # Load the dataset
17
+ dataset = fetch_california_housing()
18
+ X, y = dataset.data, dataset.target
19
+
20
+ # Split the dataset into training and testing sets
21
+ _, X_test, _, y_test = train_test_split(X, y, test_size=0.25, random_state=random_seed)
22
+
23
+ # Use the model to make predictions on the test data
24
+ y_pred = loaded_model.predict(X_test)
25
+
26
+ # Score the model using mean squared error
27
+ mse = mean_squared_error(y_test, y_pred)
28
+
29
+ print(f'Mean Squared Error: {mse}')
scikit-learn/adaboost_regressor/train.py ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ # -*- coding: utf-8 -*-
3
+
4
+ import joblib
5
+
6
+ from sklearn.datasets import fetch_california_housing
7
+ from sklearn.ensemble import AdaBoostRegressor
8
+ from sklearn.model_selection import train_test_split
9
+
10
+ # Set the random seed
11
+ random_seed = 0
12
+
13
+ # Load the dataset
14
+ dataset = fetch_california_housing()
15
+ X, y = dataset.data, dataset.target
16
+
17
+ # Split the dataset into training and testing sets
18
+ X_train, _, y_train, _ = train_test_split(X, y, test_size=0.25, random_state=random_seed)
19
+
20
+ # Create and train the model
21
+ model = AdaBoostRegressor(n_estimators=100, random_state=random_seed)
22
+ model.fit(X_train, y_train)
23
+
24
+ # Save the trained model to disk
25
+ joblib.dump(model, 'adaboost_regressor.joblib')
scikit-learn/convert2onnx.py ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import argparse
2
+ import joblib
3
+
4
+ from sklearn.datasets import fetch_california_housing, load_diabetes, load_iris
5
+ from skl2onnx import convert_sklearn
6
+ from skl2onnx.common.data_types import FloatTensorType
7
+
8
+
9
+ def load_dataset(dataset_name):
10
+ if dataset_name == 'california':
11
+ dataset = fetch_california_housing()
12
+ elif dataset_name == 'diabetes':
13
+ dataset = load_diabetes()
14
+ elif dataset_name == 'iris':
15
+ dataset = load_iris()
16
+ else:
17
+ raise ValueError("Invalid dataset name")
18
+ return dataset.data, dataset.target
19
+
20
+
21
+ def prepare_onnx_conversion_params(X, target_opset, model):
22
+ if target_opset in {9, 17}:
23
+ tensor = FloatTensorType([None, 4])
24
+ else:
25
+ tensor = FloatTensorType([None, X.shape[1]])
26
+ if target_opset == 9:
27
+ options = {id(model): {'zipmap': False}}
28
+ else:
29
+ options = None
30
+ return tensor, options
31
+
32
+
33
+ def convert2onnx(model, initial_type, options, target_opset, onnx_filename):
34
+ # try:
35
+ # model.save_model(onnx_filename, format="onnx")
36
+ # print("Model saved in ONNX format successfully.")
37
+ # except Exception as e:
38
+ # print("Error occurred while saving model in ONNX format:", e)
39
+ try:
40
+ onnx_model = convert_sklearn(model, initial_types=initial_type, options=options, target_opset=target_opset)
41
+ with open(onnx_filename, "wb") as f:
42
+ f.write(onnx_model.SerializeToString())
43
+ print("Model converted to ONNX format and saved successfully.")
44
+ except Exception as e:
45
+ print("Error occurred while converting model to ONNX format:", e)
46
+
47
+ """
48
+ python convert2onnx.py california adaboost_regressor.joblib adaboost_regressor.onnx
49
+ """
50
+ if __name__ == "__main__":
51
+ parser = argparse.ArgumentParser(description='Converts a sklearn model to ONNX format.')
52
+ parser.add_argument('dataset_name', type=str, help='Name of the dataset. Choose from: "california", "diabetes", or "iris".')
53
+ parser.add_argument('model_path', type=str, help='Path to the trained model file.')
54
+ parser.add_argument('onnx_filename', type=str, help='The filename for the output ONNX file.')
55
+ args = parser.parse_args()
56
+
57
+ X, y = load_dataset(args.dataset_name)
58
+ model = joblib.load(args.model_path)
59
+ target_opset = 12
60
+ tensor, options = prepare_onnx_conversion_params(X, target_opset, model)
61
+
62
+ input_name = 'float_input'
63
+ initial_type = [(input_name, tensor)]
64
+ convert2onnx(model, initial_type, options, target_opset, args.onnx_filename)
scikit-learn/model_packaging.py ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import onnx
3
+ import shutil
4
+ import zipfile
5
+ import argparse
6
+
7
+
8
+ def create_triton_config(model_path, config_path, model_name, max_batch_size=0):
9
+ # Load the ONNX model
10
+ model = onnx.load(model_path)
11
+ # Extract input and output information
12
+ input_tensors = []
13
+ for i in model.graph.input:
14
+ shape = [dim.dim_value if dim.dim_value >= 1 else -1 for dim in i.type.tensor_type.shape.dim][1:]
15
+ input_tensors.append({"name": i.name, "data_type": "TYPE_FP32", "dims": shape})
16
+ output_tensors = []
17
+ for o in model.graph.output:
18
+ shape = [dim.dim_value if dim.dim_value >= 1 else -1 for dim in o.type.tensor_type.shape.dim]
19
+ # Create the Triton configuration
20
+ config = {
21
+ "name": model_name,
22
+ "backend": "onnxruntime",
23
+ "max_batch_size": max_batch_size,
24
+ "input": input_tensors,
25
+ "output": output_tensors,
26
+ "instance_group": [{"count": 1, "kind": "KIND_CPU"}],
27
+ }
28
+ # Save the configuration as a JSON file
29
+ with open(config_path, 'w') as f:
30
+ f.write("name: \"" + config['name'] + "\"\n")
31
+ f.write("backend: \"" + config['backend'] + "\"\n")
32
+ f.write("max_batch_size: " + str(config['max_batch_size']) + "\n")
33
+ f.write("input [\n")
34
+ for input_tensor in config['input']:
35
+ f.write(" {\n")
36
+ f.write(" name: \"" + input_tensor['name'] + "\"\n")
37
+ f.write(" data_type: " + input_tensor['data_type'] + "\n")
38
+ f.write(" dims: [ " + ", ".join([str(dim) for dim in input_tensor['dims']]) + " ]\n")
39
+ f.write(" }\n")
40
+ f.write("]\n")
41
+ f.write("output [\n")
42
+ for output_tensor in config['output']:
43
+ f.write(" {\n")
44
+ f.write(" name: \"" + output_tensor['name'] + "\"\n")
45
+ f.write(" data_type: " + output_tensor['data_type'] + "\n")
46
+ f.write(" dims: [ " + ", ".join([str(dim) for dim in output_tensor['dims']]) + " ]\n")
47
+ f.write(" }\n")
48
+ f.write("]\n")
49
+ f.write("instance_group [\n")
50
+ for instance_group in config['instance_group']:
51
+ f.write(" {\n")
52
+ f.write(" count: " + str(instance_group['count']) + "\n")
53
+ f.write(" kind: " + instance_group['kind'] + "\n")
54
+ f.write(" }\n")
55
+ f.write("]\n")
56
+ print(f"The configuration file has been saved to '{config_path}'")
57
+
58
+
59
+ def list_onnx_files(directory):
60
+ onnx_files = []
61
+ for root, _, files in os.walk(directory):
62
+ for file in files:
63
+ if file.endswith(".onnx"):
64
+ onnx_files.append(file)
65
+ return onnx_files
66
+
67
+
68
+ def zip_folder(folder_path, output_path):
69
+ # Create a ZipFile object
70
+ with zipfile.ZipFile(output_path, 'w', zipfile.ZIP_DEFLATED) as zip_file:
71
+ # Walk through the directory tree and add each file to the zip file
72
+ for root, dirs, files in os.walk(folder_path):
73
+ for file in files:
74
+ file_path = os.path.join(root, file)
75
+ zip_file.write(file_path, arcname=os.path.relpath(file_path, folder_path))
76
+ # Add an empty directory entry for each subdirectory
77
+ for dir in dirs:
78
+ dir_path = os.path.join(root, dir)
79
+ zip_file.write(dir_path, arcname=os.path.relpath(dir_path, folder_path))
80
+ print(f"The folder '{folder_path}' has been zipped to '{output_path}'")
81
+
82
+
83
+ """
84
+ python model_packaging.py adaboost_regressor
85
+ """
86
+ if __name__ == "__main__":
87
+ # Parse command-line arguments
88
+ parser = argparse.ArgumentParser(description='Process a directory with ONNX models.')
89
+ parser.add_argument('folder_path', type=str, help='Path to the directory with ONNX models.')
90
+ args = parser.parse_args()
91
+ folder_path = args.folder_path
92
+ # Change to the parent directory
93
+ os.chdir(folder_path)
94
+ filenames = list_onnx_files(folder_path)
95
+ version = '1'
96
+ print(filenames)
97
+ for filename in filenames:
98
+ if not filename.startswith("."): # Exclude hidden files
99
+ foldername = os.path.splitext(filename)[0] # Get the filename without extension
100
+ if not os.path.exists(foldername): # Check if folder doesn't exist
101
+ os.makedirs(foldername, exist_ok=True)
102
+ folderdir = os.path.join(foldername, version)
103
+ os.makedirs(folderdir, exist_ok=True)
104
+ shutil.copy(filename, folderdir) # Copy the file to the folder
105
+ model_path = os.path.join(folderdir, filename)
106
+ config_path = os.path.join(foldername, "config.pbtxt")
107
+ create_triton_config(model_path, config_path, foldername, max_batch_size=0)
108
+ os.rename(os.path.join(folderdir, filename), os.path.join(folderdir, 'model.onnx')) # Rename the file
109
+ print(f"The file '{os.path.join(folderdir, filename)}' has been renamed to '{os.path.join(folderdir, 'model.onnx')}'")
110
+ print(f"{foldername} folder created successfully!")
111
+ print(f"{filename} copied to {foldername} successfully!")
112
+ zip_folder(os.path.join(folder_path, foldername), f"{foldername}.zip")
113
+ else:
114
+ print(f"{foldername} folder already exists.")
zip-models.sh β†’ scikit-learn/zip-models.sh RENAMED
File without changes
svm.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:100f9b3fdac75aaa3b7da2a05ad72f0e825913119256350079a239c2080d472a
3
- size 1772
 
 
 
 
svm/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:2dba056d256c1f7d90cb5c2c5416af92d46049050bbc89906974abf4fcd38cd1
3
- size 2080
 
 
 
 
svm/config.pbtxt DELETED
@@ -1,28 +0,0 @@
1
- name: "svm"
2
- platform: "onnxruntime_onnx"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [-1, 4]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "label"
14
- data_type: TYPE_INT64
15
- dims: [-1]
16
- },
17
- {
18
- name: "probabilities"
19
- data_type: TYPE_FP32
20
- dims: [ -1, 3 ]
21
- }
22
- ]
23
- instance_group [
24
- {
25
- count: 1
26
- kind: KIND_CPU
27
- }
28
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
svr.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:99ea0859b5f4da07866e9b6ca3050ac044b95a06ba9e8e68a94343bcb2a8e7b7
3
- size 378140
 
 
 
 
svr/1/model.onnx DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:822f0834ab40cee1b3e266373a509ce0b935467cb815e199b1ddba32556bdf3c
3
- size 682116
 
 
 
 
svr/config.pbtxt DELETED
@@ -1,22 +0,0 @@
1
- name: "svr"
2
- backend: "onnxruntime"
3
- max_batch_size: 0
4
- input [
5
- {
6
- name: "float_input"
7
- data_type: TYPE_FP32
8
- dims: [ -1, 8 ]
9
- }
10
- ]
11
- output [
12
- {
13
- name: "variable"
14
- data_type: TYPE_FP32
15
- dims: [ -1, 1 ]
16
- }
17
- ]
18
- instance_group [
19
- {
20
- kind: KIND_CPU
21
- }
22
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
xgboost_classifier.zip DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:39879db60e5371382d2c56cbf9a6c9e77759ac70f12b160c570a28372494afca
3
- size 10216
 
 
 
 
xgboost_classifier/1/xgboost.json DELETED
@@ -1 +0,0 @@
1
- {"learner":{"attributes":{"best_iteration":"19","best_ntree_limit":"20"},"feature_names":[],"feature_types":[],"gradient_booster":{"model":{"gbtree_model_param":{"num_parallel_tree":"1","num_trees":"60","size_leaf_vector":"0"},"tree_info":[0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2,0,1,2],"trees":[{"base_weights":[-4.388072E-8,1.4201183E0,-7.2948337E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":0,"left_children":[1,-1,-1],"loss_changes":[5.732271E1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,4.2603552E-1,-2.1884502E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[5.333333E1,1.7777777E1,3.5555553E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[1.8404864E-2,-7.100592E-1,3.9209723E-1,1.1904762E0,-6.4429533E-1,1.3636364E0,-3.2511625E-8,-2.5544848E-8,-7.0072997E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":1,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[1.5069112E1,0E0,3.1014328E1,4.3290043E0,6.019697E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-2.1301778E-1,1.75E0,4.95E0,4.8500004E0,4.0909094E-1,-9.753488E-9,-7.663455E-9,-2.10219E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[5.333333E1,1.7777777E1,3.5555553E1,1.9999998E1,1.5555554E1,1.7333332E1,2.6666665E0,1.3333333E0,1.4222221E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-1.8404953E-2,-7.0031554E-1,1.1767956E0,-7.2631586E-1,-3.658537E-1,2.926829E-1,1.3489933E0,-2.5544848E-8,-5.172414E-1,-1.2000003E-1,5.9999996E-1,4.285714E-1,1.4014598E0],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,1,1,1,0,0,0,0,0,0],"id":2,"left_children":[1,3,5,-1,7,9,11,-1,-1,-1,-1,-1,-1],"loss_changes":[4.510687E1,4.0575027E-2,2.666933E0,0E0,2.5231284E-1,6.497562E-1,1.9886589E-1,0E0,0E0,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,4,4,5,5,6,6],"right_children":[2,4,6,-1,8,10,12,-1,-1,-1,-1,-1,-1],"split_conditions":[4.75E0,1.45E0,1.75E0,-2.1789476E-1,5.75E0,5.05E0,4.8500004E0,-7.663455E-9,-1.5517244E-1,-3.600001E-2,1.7999999E-1,1.2857142E-1,4.2043796E-1],"split_indices":[2,3,3,0,0,2,2,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[5.333333E1,3.422222E1,1.911111E1,3.0666664E1,3.5555553E0,3.5555553E0,1.5555554E1,1.3333333E0,2.222222E0,1.7777777E0,1.7777777E0,1.3333333E0,1.4222221E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"13","size_leaf_vector":"0"}},{"base_weights":[-2.4198478E-3,9.775956E-1,-6.5274566E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":3,"left_children":[1,-1,-1],"loss_changes":[3.3530064E1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,2.932787E-1,-1.9582371E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[5.0609016E1,1.9986664E1,3.0622355E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[1.3180485E-2,-6.316788E-1,2.9831672E-1,8.314904E-1,-5.672999E-1,9.4395816E-1,-1.5013666E-2,-8.60127E-3,-6.2337E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":4,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[9.758991E0,0E0,1.744223E1,2.2191448E0,4.5232153E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.8950365E-1,1.75E0,4.95E0,4.8500004E0,2.8318745E-1,-4.5041E-3,-2.580381E-3,-1.87011E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[5.1049862E1,1.5279237E1,3.5770626E1,2.2160416E1,1.3610209E1,1.945983E1,2.7005863E0,1.3465171E0,1.2263692E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-1.0864792E-2,-6.20765E-1,8.3484936E-1,-6.482378E-1,-2.970924E-1,2.3996444E-1,9.400166E-1,4.121017E-2,-4.5491034E-1,-1.0451714E-1,4.811127E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,1,1,0,0,0,0,0],"id":5,"left_children":[1,3,5,-1,7,9,-1,-1,-1,-1,-1],"loss_changes":[2.7158945E1,7.9351425E-2,1.1550188E0,0E0,2.4505293E-1,4.372227E-1,0E0,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,4,4,5,5],"right_children":[2,4,6,-1,8,10,-1,-1,-1,-1,-1],"split_conditions":[4.75E0,1.45E0,1.75E0,-1.9447136E-1,5.75E0,5.05E0,2.82005E-1,1.2363052E-2,-1.364731E-1,-3.1355143E-2,1.4433381E-1],"split_indices":[2,3,3,0,0,2,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[5.064916E1,2.9581778E1,2.106738E1,2.634306E1,3.2387176E0,3.6579132E0,1.7409468E1,1.2652882E0,1.9734294E0,1.7395468E0,1.9183666E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"11","size_leaf_vector":"0"}},{"base_weights":[-4.98169E-3,7.830637E-1,-6.015022E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":6,"left_children":[1,-1,-1],"loss_changes":[2.1915745E1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,2.3491912E-1,-1.8045066E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[4.4618816E1,1.9088652E1,2.5530167E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[1.1238583E-2,-5.7759595E-1,2.4744992E-1,6.834555E-1,-4.651747E-1,7.985697E-1,-2.1465062E-1,-1.4867917E-1,-5.6276643E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":7,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[6.6453195E0,0E0,1.0902309E1,2.3982716E0,3.3410382E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.732788E-1,1.6500001E0,4.95E0,5.05E0,2.3957092E-1,-6.439519E-2,-4.460375E-2,-1.6882993E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[4.5749744E1,1.2684414E1,3.306533E1,2.0539541E1,1.2525789E1,1.8304237E1,2.2353039E0,3.5467982E0,8.9789915E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-6.444672E-3,-5.641632E-1,6.6197366E-1,-5.9559005E-1,-2.3628259E-1,2.005239E-1,7.458877E-1,7.854891E-2,-4.0434113E-1,-8.985499E-2,3.9533433E-1,2.2879547E-1,7.7926815E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,1,1,1,0,0,0,0,0,0],"id":8,"left_children":[1,3,5,-1,7,9,11,-1,-1,-1,-1,-1,-1],"loss_changes":[1.7619322E1,1.247015E-1,6.8305874E-1,0E0,2.3867224E-1,3.0005306E-1,1.2940311E-1,0E0,0E0,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,4,4,5,5,6,6],"right_children":[2,4,6,-1,8,10,12,-1,-1,-1,-1,-1,-1],"split_conditions":[4.75E0,1.45E0,1.75E0,-1.7867702E-1,5.75E0,5.05E0,4.8500004E0,2.3564674E-2,-1.21302344E-1,-2.6956499E-2,1.186003E-1,6.8638645E-2,2.3378046E-1],"split_indices":[2,3,3,0,0,2,2,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[4.5261684E1,2.475906E1,2.0502626E1,2.1848434E1,2.910625E0,3.6762547E0,1.6826372E1,1.1983371E0,1.7122878E0,1.6923872E0,1.9838674E0,1.496619E0,1.5329753E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"13","size_leaf_vector":"0"}},{"base_weights":[-8.059348E-3,6.7477095E-1,-5.650594E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":9,"left_children":[1,-1,-1],"loss_changes":[1.5080838E1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,2.0243129E-1,-1.6951783E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[3.7648808E1,1.6818928E1,2.0829878E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[8.896823E-3,-5.370002E-1,2.1249095E-1,5.793665E-1,-4.1650772E-1,6.8783724E-1,-1.9421528E-1,-1.241779E-1,-5.20456E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":10,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[4.613496E0,0E0,7.211057E0,1.7693915E0,2.9115534E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.6110006E-1,1.6500001E0,4.95E0,5.05E0,2.0635118E-1,-5.8264587E-2,-3.7253372E-2,-1.5613681E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[3.948345E1,1.0280565E1,2.9202885E1,1.849451E1,1.0708373E1,1.6317352E1,2.177159E0,3.384601E0,7.3237724E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-1.2173535E-3,-5.201784E-1,5.571784E-1,-5.568748E-1,-1.8782406E-1,1.5949956E-1,6.37215E-1,9.286862E-2,-3.5951912E-1,3.5964155E-1,-1.6232704E-1,1.7909549E-1,6.719371E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,1,1,1,0,0,0,0,0,0],"id":11,"left_children":[1,3,5,-1,7,9,11,-1,-1,-1,-1,-1,-1],"loss_changes":[1.1880436E1,1.5454865E-1,5.2696514E-1,0E0,2.079308E-1,3.5742068E-1,1.3586617E-1,0E0,0E0,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,4,4,5,5,6,6],"right_children":[2,4,6,-1,8,10,12,-1,-1,-1,-1,-1,-1],"split_conditions":[4.75E0,1.45E0,1.75E0,-1.6706245E-1,5.75E0,1.55E0,4.8500004E0,2.7860587E-2,-1.07855745E-1,1.0789247E-1,-4.8698112E-2,5.372865E-2,2.0158114E-1],"split_indices":[2,3,3,0,0,3,2,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[3.8997166E1,2.0247766E1,1.8749397E1,1.7626062E1,2.621704E0,3.6427016E0,1.5106697E1,1.1692626E0,1.4524413E0,2.1735086E0,1.469193E0,1.4981561E0,1.3608541E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"13","size_leaf_vector":"0"}},{"base_weights":[-1.1809388E-2,6.061132E-1,-5.375978E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":12,"left_children":[1,-1,-1],"loss_changes":[1.0698906E1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.8183397E-1,-1.6127934E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[3.0927279E1,1.41477E1,1.677958E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[7.7246916E-3,-5.041373E-1,1.8725912E-1,5.0849116E-1,-3.730674E-1,6.1943436E-1,-1.8056495E-1,-1.0278842E-1,-4.8525718E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":13,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[3.2552836E0,0E0,4.9044023E0,1.4169378E0,2.5703084E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.5124118E-1,1.6500001E0,4.95E0,5.05E0,1.8583031E-1,-5.4169487E-2,-3.0836526E-2,-1.4557716E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[3.339595E1,8.202415E0,2.5193535E1,1.6072037E1,9.121498E0,1.3930208E1,2.1418285E0,3.2376945E0,5.8838034E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[3.2736447E-3,-4.8319763E-1,4.8026285E-1,-1.5908249E-1,-5.3154266E-1,1.230003E-1,5.6392473E-1,-3.504363E-1,1.6491483E-1,3.174605E-1,-1.755247E-1,1.3883919E-1,6.0309875E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,1,0,1,1,0,0,0,0,0,0],"id":14,"left_children":[1,3,5,7,-1,9,11,-1,-1,-1,-1,-1,-1],"loss_changes":[8.124401E0,1.8710661E-1,4.589362E-1,2.8578994E-1,0E0,3.2465538E-1,1.5010643E-1,0E0,0E0,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,3,3,5,5,6,6],"right_children":[2,4,6,8,-1,10,12,-1,-1,-1,-1,-1,-1],"split_conditions":[4.75E0,2.55E0,1.75E0,1.2E0,-1.5946281E-1,1.55E0,4.8500004E0,-1.05130896E-1,4.947445E-2,9.523816E-2,-5.265741E-2,4.1651756E-2,1.8092963E-1],"split_indices":[2,1,3,3,0,3,2,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[3.3012608E1,1.633741E1,1.66752E1,2.6774948E0,1.3659916E1,3.632687E0,1.3042511E1,1.6320176E0,1.0454772E0,2.1613476E0,1.4713396E0,1.4839566E0,1.1558555E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"13","size_leaf_vector":"0"}},{"base_weights":[-1.59895E-2,5.581734E-1,-5.1545846E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":15,"left_children":[1,-1,-1],"loss_changes":[7.7427955E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.6745204E-1,-1.5463755E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[2.4996126E1,1.1573878E1,1.3422248E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[6.8771993E-3,-4.7548726E-1,1.6697358E-1,4.5420069E-1,-3.3245948E-1,5.7123345E-1,-1.6746745E-1,-8.339706E-2,-4.5391807E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":16,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[2.3180466E0,0E0,3.379376E0,1.1659412E0,2.2818464E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.4264618E-1,1.6500001E0,4.95E0,5.05E0,1.7137004E-1,-5.0240237E-2,-2.5019119E-2,-1.3617542E-1],"split_indices":[2,0,3,2,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[2.7988783E1,6.483682E0,2.15051E1,1.3710609E1,7.7944903E0,1.1606705E1,2.1039047E0,3.107957E0,4.6865335E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[7.53006E-3,-4.4876435E-1,4.1923335E-1,-5.031929E-1,-8.033345E-2,1.8314035E-1,5.7103455E-1,3.5799837E-1,-1.891317E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,1,0,0,0],"id":17,"left_children":[1,3,5,-1,-1,7,-1,-1,-1],"loss_changes":[5.5844555E0,2.4248505E-1,4.5514345E-1,0E0,0E0,5.6139064E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,5,5],"right_children":[2,4,6,-1,-1,8,-1,-1,-1],"split_conditions":[4.75E0,1.45E0,5.1499996E0,-1.5095788E-1,-2.4100035E-2,2.9E0,1.7131037E-1,1.07399516E-1,-5.6739513E-2],"split_indices":[2,3,2,0,0,1,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[2.7725533E1,1.3107905E1,1.4617626E1,1.1102023E1,2.0058818E0,6.5840497E0,8.033577E0,4.5059333E0,2.078117E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-2.0702839E-2,5.216991E-1,-4.961255E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":18,"left_children":[1,-1,-1],"loss_changes":[5.68363E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.5650973E-1,-1.4883766E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[2.0036951E1,9.31373E0,1.072322E1],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[6.549302E-3,-4.4881168E-1,1.5017034E-1,4.189683E-1,-3.0072248E-1,5.352017E-1,-1.2970662E-1,-4.9227497E-1,-9.578E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":19,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[1.6637038E0,0E0,2.4657757E0,8.6741424E-1,2.5876188E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[2.45E0,-1.3464351E-1,1.6500001E0,4.95E0,2.95E0,1.6056052E-1,-3.8911987E-2,-1.476825E-1,-2.8734E-2],"split_indices":[2,0,3,2,1,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[2.3408562E1,5.103277E0,1.8305285E1,1.1512786E1,6.7924986E0,9.520485E0,1.9923011E0,2.7862623E0,4.006236E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[1.1348243E-2,-3.442187E-1,4.5289418E-1,-4.9830702E-1,2.917678E-1,5.1255924E-1,2.0519708E-1,5.9751344E-1,2.3380111E-1,-7.722174E-2,3.6147267E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,1,1,0,0,0,0],"id":20,"left_children":[1,3,5,-1,-1,7,9,-1,-1,-1,-1],"loss_changes":[3.9696162E0,1.5197071E0,6.1344385E-2,0E0,0E0,5.9525013E-2,1.9804747E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,5,5,6,6],"right_children":[2,4,6,-1,-1,8,10,-1,-1,-1,-1],"split_conditions":[1.6500001E0,4.95E0,3.15E0,-1.4949211E-1,8.7530345E-2,6.6E0,6.3500004E0,1.7925404E-1,7.014034E-2,-2.3166522E-2,1.0844181E-1],"split_indices":[3,2,1,0,0,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0,0,0],"sum_hessian":[2.3291353E1,1.3023914E1,1.026744E1,1.0658121E1,2.3657932E0,7.4126005E0,2.8548388E0,4.8048058E0,2.607795E0,1.1971784E0,1.6576604E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"11","size_leaf_vector":"0"}},{"base_weights":[-2.7354695E-2,4.9140522E-1,-4.783766E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":21,"left_children":[1,-1,-1],"loss_changes":[4.2211747E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.4742157E-1,-1.4351298E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[1.6036636E1,7.4166074E0,8.620029E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[3.518805E-3,-4.2275235E-1,1.3222598E-1,3.2207018E-1,-4.373372E-1,4.5934236E-1,-7.012013E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":22,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[1.1863892E0,0E0,1.9345242E0,7.330208E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[2.45E0,-1.268257E-1,5.1499996E0,1.6500001E0,-1.3120116E-1,1.3780272E-1,-2.103604E-2],"split_indices":[2,0,2,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.9605265E1,4.016901E0,1.5588363E1,1.2017332E1,3.571031E0,8.774803E0,3.2425284E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[1.9064246E-2,-3.142383E-1,4.019417E-1,-4.767214E-1,2.4352677E-1,1.8246022E-1,4.821709E-1,5.0152314E-1,-2.6807725E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,1,0,0,0],"id":23,"left_children":[1,3,5,-1,-1,7,-1,-1,-1],"loss_changes":[2.760551E0,1.1670837E0,8.891177E-2,0E0,0E0,7.522617E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,5,5],"right_children":[2,4,6,-1,-1,8,-1,-1,-1],"split_conditions":[1.6500001E0,4.95E0,5.05E0,-1.4301643E-1,7.305803E-2,2.9E0,1.4465128E-1,1.5045695E-1,-8.042318E-2],"split_indices":[3,2,2,0,0,1,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[1.9642286E1,1.0596816E1,9.04547E0,8.318768E0,2.2780478E0,3.297848E0,5.7476225E0,1.8643682E0,1.4334798E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-3.2237165E-2,4.6459824E-1,-4.60888E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":24,"left_children":[1,-1,-1],"loss_changes":[3.1528642E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.3937947E-1,-1.382664E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[1.2798899E1,5.889133E0,6.909766E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[3.4708277E-4,-3.9654282E-1,1.1588764E-1,2.8608426E-1,-4.0998936E-1,4.1825473E-1,-5.1305346E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":25,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[8.483837E-1,0E0,1.3995855E0,5.303911E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[2.45E0,-1.1896285E-1,5.1499996E0,1.6500001E0,-1.22996815E-1,1.2547642E-1,-1.5391604E-2],"split_indices":[2,0,2,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.649856E1,3.1716511E0,1.3326909E1,1.0412847E1,2.9140627E0,7.309653E0,3.1031933E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[2.5062872E-2,-2.8032875E-1,3.6166322E-1,-4.563012E-1,2.1992896E-1,1.5044968E-1,4.5256156E-1,4.646461E-1,-2.5903416E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,1,0,0,0],"id":26,"left_children":[1,3,5,-1,-1,7,-1,-1,-1],"loss_changes":[1.9009727E0,9.579712E-1,1.0018015E-1,0E0,0E0,6.5236175E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,5,5],"right_children":[2,4,6,-1,-1,8,-1,-1,-1],"split_conditions":[1.6500001E0,4.95E0,5.05E0,-1.3689037E-1,6.597869E-2,2.9E0,1.3576847E-1,1.3939384E-1,-7.771025E-2],"split_indices":[3,2,2,0,0,1,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[1.6506584E1,8.742156E0,7.7644286E0,6.5322247E0,2.2099314E0,3.1350024E0,4.6294265E0,1.6976702E0,1.437332E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-3.7210565E-2,4.394627E-1,-4.4347262E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":27,"left_children":[1,-1,-1],"loss_changes":[2.3754232E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.3183881E-1,-1.330418E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[1.02599325E1,4.6832657E0,5.576667E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-2.8135935E-3,9.945826E-2,-3.83388E-1,-3.699689E-1,2.5266248E-1,3.7843367E-1,-3.6481675E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":28,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[6.2376845E-1,1.0034904E0,0E0,0E0,3.8234448E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,2.45E0,-1.1501641E-1,-1.1099067E-1,1.6500001E0,1.1353011E-1,-1.0944502E-2],"split_indices":[2,2,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.4046414E1,1.1653444E1,2.39297E0,2.5192952E0,9.13415E0,6.1501613E0,2.9839878E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.0703863E-2,-4.1192883E-1,2.2612002E-1,4.2000737E-2,4.4874766E-1,2.8350404E-1,-2.8523377E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":29,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[1.3927556E0,0E0,4.3486077E-1,6.468331E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-1.2357865E-1,5.1499996E0,2.85E0,1.346243E-1,8.5051216E-2,-8.5570134E-2],"split_indices":[2,0,2,1,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.4024816E1,3.9560652E0,1.006875E1,6.1615973E0,3.9071536E0,3.6220868E0,2.5395105E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-4.1677922E-2,4.1533133E-1,-4.258924E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":30,"left_children":[1,-1,-1],"loss_changes":[1.8099686E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.24599405E-1,-1.2776773E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[8.300565E0,3.7541502E0,4.5464144E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-3.0583446E-3,8.89286E-2,-3.53834E-1,-3.43185E-1,2.2023572E-1,-7.8115836E-2,3.3404425E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":31,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[4.5794484E-1,7.15062E-1,0E0,0E0,3.402773E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,2.45E0,-1.061502E-1,-1.02955505E-1,2.55E0,-2.343475E-2,1.0021328E-1],"split_indices":[2,2,0,0,1,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.2217275E1,1.0270447E1,1.9468282E0,2.0175064E0,8.25294E0,2.3654587E0,5.887481E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.244433E-2,-3.8915175E-1,2.0350994E-1,4.3013882E-2,4.1879532E-1,2.6512882E-1,-2.614062E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":32,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[1.0307086E0,0E0,3.2895634E-1,5.3365713E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-1.1674553E-1,5.1499996E0,2.85E0,1.256386E-1,7.953865E-2,-7.842187E-2],"split_indices":[2,0,2,1,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.2193351E1,3.151506E0,9.041845E0,5.8674436E0,3.1744018E0,3.466928E0,2.4005156E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-4.7958553E-2,3.91467E-1,-4.0858942E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":33,"left_children":[1,-1,-1],"loss_changes":[1.3981948E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.17440104E-1,-1.2257683E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[6.813733E0,3.032794E0,3.780939E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-5.0737E-3,7.546076E-2,-3.2546073E-1,-3.1663117E-1,1.8462761E-1,3.265911E-1,-6.657156E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":34,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[3.3395952E-1,5.033703E-1,0E0,0E0,3.3421284E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,2.45E0,-9.763823E-2,-9.498935E-2,1.6500001E0,9.797733E-2,-1.997147E-2],"split_indices":[2,2,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[1.0991228E1,9.394291E0,1.5969372E0,1.6320529E0,7.762238E0,4.7676854E0,2.9945529E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.6646504E-2,-2.1509801E-1,2.8577843E-1,-4.0212414E-1,1.467256E-1,3.777241E-1,-2.962952E-2,4.8982275E-1,1.7771665E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,1,0,0,0],"id":35,"left_children":[1,3,5,-1,-1,7,-1,-1,-1],"loss_changes":[8.0692023E-1,4.976735E-1,1.9689149E-1,0E0,0E0,1.94287E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,5,5],"right_children":[2,4,6,-1,-1,8,-1,-1,-1],"split_conditions":[1.6500001E0,4.95E0,3.15E0,-1.20637245E-1,4.401768E-2,6.6E0,-8.8888565E-3,1.4694683E-1,5.3314995E-3],"split_indices":[3,2,1,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[1.0885816E1,5.4824667E0,5.4033494E0,3.5408332E0,1.9416333E0,4.0307565E0,1.372593E0,2.7984478E0,1.2323085E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[-5.3955033E-2,3.6724672E-1,-3.9091274E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":36,"left_children":[1,-1,-1],"loss_changes":[1.0844479E0,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.1017402E-1,-1.1727383E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[5.6293607E0,2.461972E0,3.1673887E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-5.110313E-3,7.475058E-2,-3.095091E-1,-2.3534714E-1,2.0031838E-1,3.1456107E-1,-8.140023E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":37,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[2.8462583E-1,4.103051E-1,0E0,0E0,2.5664553E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,5.45E0,-9.2852734E-2,-7.0604146E-2,1.75E0,9.436832E-2,-2.442007E-2],"split_indices":[2,0,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[9.756668E0,8.326572E0,1.4300954E0,2.1479096E0,6.1786633E0,4.3130527E0,1.8656101E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.856073E-2,-3.4361595E-1,1.7099753E-1,3.765981E-2,3.7379447E-1,2.317748E-1,-2.3180616E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":38,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[6.004034E-1,0E0,2.1888015E-1,3.8377187E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-1.0308479E-1,5.1499996E0,2.85E0,1.12138346E-1,6.953245E-2,-6.954185E-2],"split_indices":[2,0,2,1,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[9.70145E0,2.086323E0,7.6151276E0,5.309721E0,2.3054066E0,3.1676888E0,2.1420321E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.391214E-2,3.4583467E-1,-3.7282577E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":39,"left_children":[1,-1,-1],"loss_changes":[8.593824E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,1.0375041E-1,-1.11847736E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[4.7296777E0,2.0613875E0,2.6682901E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-5.4211468E-3,6.534034E-2,-2.836028E-1,-2.2973254E-1,1.6979086E-1,2.7255502E-1,-7.892003E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":40,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[2.1307796E-1,3.0689198E-1,0E0,0E0,2.0027803E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,5.3500004E0,-8.508085E-2,-6.891976E-2,1.75E0,8.176651E-2,-2.367601E-2],"split_indices":[2,0,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[8.883247E0,7.6917915E0,1.1914562E0,1.6973462E0,5.9944453E0,4.1739507E0,1.8204944E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.712819E-2,-3.2183146E-1,1.55002E-1,3.8198292E-2,3.4741217E-1,3.415917E-1,-1.1653733E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":41,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[4.6297094E-1,0E0,1.6707201E-1,3.269649E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-9.6549444E-2,5.1499996E0,2.6E0,1.0422365E-1,1.0247751E-1,-3.49612E-2],"split_indices":[2,0,2,1,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[8.76288E0,1.738461E0,7.024419E0,5.116776E0,1.9076431E0,1.3203518E0,3.7964242E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.3361222E-2,3.2590663E-1,-3.5543418E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":42,"left_children":[1,-1,-1],"loss_changes":[6.931711E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,9.7771995E-2,-1.0663026E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[4.0392785E0,1.7558365E0,2.2834418E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-9.309674E-3,5.266195E-2,-2.5956395E-1,-2.0583177E-1,1.4165567E-1,2.4008538E-1,-8.029699E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":43,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[1.5703125E-1,2.1872556E-1,0E0,0E0,1.6614152E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,5.3500004E0,-7.786919E-2,-6.1749533E-2,1.75E0,7.202562E-2,-2.40891E-2],"split_indices":[2,0,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[8.244E0,7.240555E0,1.003446E0,1.5181148E0,5.7224402E0,3.907762E0,1.8146782E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[3.9102945E-2,-3.0114266E-1,1.4444934E-1,2.1633482E-1,-1.4002624E-1,1.5484253E-2,4.1039595E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":44,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[3.6887538E-1,0E0,1.8586002E-1,2.456612E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-9.0342805E-2,3.15E0,1.75E0,-4.2007875E-2,4.645276E-3,1.2311879E-1],"split_indices":[2,0,1,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[8.077636E0,1.470299E0,6.6073365E0,5.465711E0,1.1416254E0,3.2164848E0,2.2492263E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.225809E-2,3.070053E-1,-3.3834037E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":45,"left_children":[1,-1,-1],"loss_changes":[5.6496197E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,9.210159E-2,-1.0150211E-1],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[3.4862301E0,1.5130274E0,1.9732026E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-8.463212E-3,-1.9045606E-1,5.217835E-2,1.70005E-1,-1.3959256E-1,-1.8209076E-2,4.2539728E-1,7.060749E-2,-2.796755E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":46,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[1.05716996E-1,0E0,1.8855526E-1,2.4660885E-1,1.1766053E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[5.3500004E0,-5.7136822E-2,1.75E0,1.55E0,4.8500004E0,-5.462723E-3,1.2761919E-1,2.1182248E-2,-8.390266E-2],"split_indices":[0,0,3,3,2,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[7.678547E0,1.3840764E0,6.2944703E0,3.9692245E0,2.325246E0,2.8198254E0,1.149399E0,1.1282386E0,1.1970074E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[3.627966E-2,-2.8167096E-1,1.3069443E-1,2.1098997E-1,-1.2774506E-1,3.885311E-2,3.8202417E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":47,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[2.9157168E-1,0E0,1.7691427E-1,1.585849E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-8.450129E-2,3.05E0,1.75E0,-3.832352E-2,1.1655933E-2,1.1460725E-1],"split_indices":[2,0,1,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[7.486521E0,1.2600038E0,6.226517E0,4.8906293E0,1.3358878E0,3.049069E0,1.8415605E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.6529112E-2,2.8787073E-1,-3.2403165E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":48,"left_children":[1,-1,-1],"loss_changes":[4.6735477E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,8.636122E-2,-9.72095E-2],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[3.0603967E0,1.3046129E0,1.7557837E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-3.2487055E-3,-1.7628452E-1,5.3245228E-2,1.9985949E-1,-1.03816465E-1,3.2233182E-1,6.177554E-3,-3.8260242E-1,1.1879367E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":49,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[9.0379365E-2,0E0,1.8226571E-1,9.216961E-2,2.9645658E-1,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[5.3500004E0,-5.2885357E-2,4.95E0,5.95E0,1.55E0,9.669955E-2,1.8532663E-3,-1.1478073E-1,3.56381E-2],"split_indices":[0,0,2,0,3,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[7.285334E0,1.2712364E0,6.0140977E0,2.9695685E0,3.044529E0,1.4122912E0,1.5572773E0,1.0326182E0,2.011911E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[3.1819813E-2,-2.6668206E-1,1.1842909E-1,1.9846532E-1,-1.2991709E-1,4.3962326E-2,3.612096E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":50,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[2.3994058E-1,0E0,1.6371438E-1,1.260263E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[4.45E0,-8.000462E-2,3.05E0,1.75E0,-3.8975127E-2,1.3188698E-2,1.0836288E-1],"split_indices":[2,0,1,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[7.059313E0,1.1200123E0,5.9393005E0,4.643621E0,1.2956796E0,3.0336883E0,1.6099328E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.5266768E-2,2.7177936E-1,-3.090595E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":51,"left_children":[1,-1,-1],"loss_changes":[3.918132E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,8.153381E-2,-9.2717856E-2],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[2.708554E0,1.1525136E0,1.5560404E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-6.905479E-4,-1.7052993E-1,5.0125446E-2,1.8281426E-1,-9.2710555E-2,2.8192496E-1,1.16954595E-2,3.313815E-2,-1.5952787E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,1,0,0,0,0],"id":52,"left_children":[1,-1,3,5,7,-1,-1,-1,-1],"loss_changes":[7.731942E-2,0E0,1.4783885E-1,6.312923E-2,3.8832854E-2,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3,4,4],"right_children":[2,-1,4,6,8,-1,-1,-1,-1],"split_conditions":[5.1499996E0,-5.1158983E-2,4.95E0,5.95E0,6.05E0,8.457749E-2,3.508638E-3,9.941445E-3,-4.785836E-2],"split_indices":[0,0,2,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[6.9683776E0,1.0622497E0,5.906128E0,2.9167225E0,2.9894052E0,1.4369262E0,1.4797963E0,1.2115431E0,1.7778622E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[2.7230961E-2,-7.05585E-2,2.928895E-1,6.126747E-2,-3.7480062E-1,-8.823424E-2,3.2205003E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,1,0,0,0],"id":53,"left_children":[1,3,-1,5,-1,-1,-1],"loss_changes":[2.2144812E-1,2.8185853E-1,0E0,2.3751314E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,3,3],"right_children":[2,4,-1,6,-1,-1,-1],"split_conditions":[5.1499996E0,3.05E0,8.786686E-2,1.75E0,-1.1244019E-1,-2.6470272E-2,9.661502E-2],"split_indices":[2,1,0,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[6.728754E0,5.4551163E0,1.273638E0,4.3631964E0,1.0919197E0,3.1938682E0,1.1693282E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.164716E-2,2.5655726E-1,-2.931637E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":54,"left_children":[1,-1,-1],"loss_changes":[3.2796338E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[2.45E0,7.696718E-2,-8.794911E-2],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[2.395515E0,1.0250942E0,1.3704208E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-8.2531007E-4,-1.3599542E-1,6.0979575E-2,1.6189457E-1,-1.01533875E-1,-5.8562797E-2,3.8716957E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,1,1,0,0,0],"id":55,"left_children":[1,-1,3,5,-1,-1,-1],"loss_changes":[7.199626E-2,0E0,1.13577664E-1,2.2329068E-1,0E0,0E0,0E0],"parents":[2147483647,0,0,2,2,3,3],"right_children":[2,-1,4,6,-1,-1,-1],"split_conditions":[2.65E0,-4.0798627E-2,1.75E0,1.55E0,-3.0460164E-2,-1.756884E-2,1.1615088E-1],"split_indices":[1,0,3,3,0,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[6.625328E0,1.7021811E0,4.923147E0,3.039522E0,1.8836254E0,1.9102057E0,1.1293161E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[2.4777476E-2,-6.345565E-2,2.7339655E-1,2.0754112E-1,-1.8424311E-1,-3.0823144E-1,5.9109375E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,0,0,1,0,0],"id":56,"left_children":[1,3,-1,-1,5,-1,-1],"loss_changes":[1.7817947E-1,2.4193175E-1,0E0,0E0,1.6407791E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,4,4],"right_children":[2,4,-1,-1,6,-1,-1],"split_conditions":[5.1499996E0,2.55E0,8.201897E-2,6.2262338E-2,1.75E0,-9.246944E-2,1.7732814E-2],"split_indices":[2,1,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0],"sum_hessian":[6.33168E0,5.222883E0,1.1087962E0,1.3887877E0,3.8340955E0,2.3633575E0,1.4707379E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"7","size_leaf_vector":"0"}},{"base_weights":[-5.2704673E-2,1.9960178E-1,-2.6817188E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,0,0],"id":57,"left_children":[1,-1,-1],"loss_changes":[2.2476238E-1,0E0,0E0],"parents":[2147483647,0,0],"right_children":[2,-1,-1],"split_conditions":[3.6E0,5.9880536E-2,-8.045156E-2],"split_indices":[2,0,0],"split_type":[0,0,0],"sum_hessian":[2.1497965E0,1.0241622E0,1.1256344E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"3","size_leaf_vector":"0"}},{"base_weights":[-5.9197994E-4,7.784141E-2,-9.6775755E-2,-1.3433005E-1,1.9286607E-1,1.9698363E-2,-1.5752198E-1,3.0456245E-1,1.3076849E-2],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,1,0,0,0,0],"id":58,"left_children":[1,3,5,-1,7,-1,-1,-1,-1],"loss_changes":[6.327403E-2,1.3875952E-1,2.973893E-2,0E0,6.4477876E-2,0E0,0E0,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,4,4],"right_children":[2,4,6,-1,8,-1,-1,-1,-1],"split_conditions":[4.95E0,5.45E0,6.05E0,-4.0299017E-2,5.95E0,5.909509E-3,-4.7256596E-2,9.1368735E-2,3.923055E-3],"split_indices":[2,0,0,0,0,0,0,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[6.38875E0,3.6241367E0,2.7646134E0,1.2150501E0,2.4090865E0,1.1792533E0,1.58536E0,1.0578723E0,1.3512142E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}},{"base_weights":[2.4145434E-2,-1.1848226E-1,1.554476E-1,-2.961989E-1,9.099302E-2,3.7231347E-1,-3.5403203E-2,-3.0973452E-1,2.5982192E-1],"categories":[],"categories_nodes":[],"categories_segments":[],"categories_sizes":[],"default_left":[1,1,1,0,0,0,1,0,0],"id":59,"left_children":[1,3,5,-1,-1,-1,7,-1,-1],"loss_changes":[1.5056846E-1,1.739952E-1,1.8315288E-1,0E0,0E0,0E0,3.3134305E-1,0E0,0E0],"parents":[2147483647,0,0,1,1,2,2,6,6],"right_children":[2,4,6,-1,-1,-1,8,-1,-1],"split_conditions":[4.95E0,1.6500001E0,1.55E0,-8.885968E-2,2.7297907E-2,1.11694045E-1,1.75E0,-9.292036E-2,7.794658E-2],"split_indices":[2,3,3,0,0,0,3,0,0],"split_type":[0,0,0,0,0,0,0,0,0],"sum_hessian":[6.0565686E0,2.949881E0,3.1066878E0,1.3719386E0,1.5779424E0,1.0091596E0,2.0975282E0,1.0617623E0,1.0357658E0],"tree_param":{"num_deleted":"0","num_feature":"4","num_nodes":"9","size_leaf_vector":"0"}}]},"name":"gbtree"},"learner_model_param":{"base_score":"5E-1","boost_from_average":"1","num_class":"3","num_feature":"4","num_target":"1"},"objective":{"name":"multi:softprob","softmax_multiclass_param":{"num_class":"3"}}},"version":[1,7,4]}
 
 
xgboost_classifier/config.pbtxt DELETED
@@ -1,42 +0,0 @@
1
- backend: "fil"
2
- input [
3
- {
4
- name: "input__0"
5
- data_type: TYPE_FP32
6
- dims: [-1, 4]
7
- }
8
- ]
9
- output [
10
- {
11
- name: "output__0"
12
- data_type: TYPE_FP32
13
- dims: [ 3 ]
14
- }
15
- ]
16
- instance_group [{ kind: KIND_CPU }]
17
- parameters [
18
- {
19
- key: "model_type"
20
- value: { string_value: "xgboost_json" }
21
- },
22
- {
23
- key: "predict_proba"
24
- value: { string_value: "true" }
25
- },
26
- {
27
- key: "output_class"
28
- value: { string_value: "true" }
29
- },
30
- {
31
- key: "threshold"
32
- value: { string_value: "0.5" }
33
- },
34
- {
35
- key: "storage_type"
36
- value: { string_value: "AUTO" }
37
- }
38
- ]
39
-
40
- dynamic_batching {
41
- max_queue_delay_microseconds: 100
42
- }