mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Add number_samples to sklearn MLModel
This commit is contained in:
parent
014943d3b8
commit
f9d2defb1b
@ -92,6 +92,7 @@ class SKLearnTransformer(ModelTransformer):
|
||||
node_index,
|
||||
decision_type=self._node_decision_type,
|
||||
leaf_value=leaf_value,
|
||||
number_samples=int(node_data[5]),
|
||||
)
|
||||
else:
|
||||
return TreeNode(
|
||||
@ -101,6 +102,7 @@ class SKLearnTransformer(ModelTransformer):
|
||||
right_child=int(node_data[1]),
|
||||
split_feature=int(node_data[2]),
|
||||
threshold=float(node_data[3]),
|
||||
number_samples=int(node_data[5]),
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user