diff options
author | Lester Solbakken <lesters@oath.com> | 2019-10-11 09:44:10 +0200 |
---|---|---|
committer | Lester Solbakken <lesters@oath.com> | 2019-10-11 09:44:10 +0200 |
commit | 8c8932cb055dcf39102b7b93d73bdbe6650af0c2 (patch) | |
tree | a053bee4364ee977bd629e7f71b21a7c79a54f54 /model-integration/src/test/models | |
parent | e5ba4ddccfa45b440b6803eb1665c3b2e6f19be9 (diff) |
Test xgboost java evaluation with missing values
Diffstat (limited to 'model-integration/src/test/models')
-rw-r--r-- | model-integration/src/test/models/xgboost/xgboost.test.if_inversion.json | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/model-integration/src/test/models/xgboost/xgboost.test.if_inversion.json b/model-integration/src/test/models/xgboost/xgboost.test.if_inversion.json new file mode 100644 index 00000000000..8994d89787e --- /dev/null +++ b/model-integration/src/test/models/xgboost/xgboost.test.if_inversion.json @@ -0,0 +1,26 @@ +[ + { "nodeid": 0, "depth": 0, "split": "f1", "split_condition": 0.5, "yes": 1, "no": 2, "missing": 2, "children": [ + { "nodeid": 1, "depth": 1, "split": "f2", "split_condition": 0.5, "yes": 3, "no": 4, "missing": 3, "children": [ + { "nodeid": 3, "leaf": 1.0 }, + { "nodeid": 4, "leaf": 2.0 } + ]}, + { "nodeid": 2, "depth": 1, "split": "f2", "split_condition": 0.5, "yes": 5, "no": 6, "missing": 5, "children": [ + { "nodeid": 5, "leaf": 3.0 }, + { "nodeid": 6, "leaf": 4.0 } + ]} + ]}, + { "nodeid": 0, "depth": 0, "split": "f1", "split_condition": 1.5, "yes": 1, "no": 2, "missing": 2, "children": [ + { "nodeid": 1, "leaf": 0.0 }, + { "nodeid": 2, "depth": 1, "split": "f2", "split_condition": 0.5, "yes": 3, "no": 4, "missing": 4, "children": [ + { "nodeid": 3, "leaf": 4.0 }, + { "nodeid": 4, "leaf": 5.0 } + ]} + ]}, + { "nodeid": 0, "depth": 0, "split": "f2", "split_condition": 1.5, "yes": 1, "no": 2, "missing": 2, "children": [ + { "nodeid": 1, "leaf": 0.0 }, + { "nodeid": 2, "depth": 1, "split": "f1", "split_condition": 0.5, "yes": 3, "no": 4, "missing": 4, "children": [ + { "nodeid": 3, "leaf": 4.0 }, + { "nodeid": 4, "leaf": 3.0 } + ]} + ]} +]
\ No newline at end of file |