@@ -66,17 +66,18 @@ def test_scenario1(self):
6666 When I create a local model from the file "<exported_file>"
6767 Then the model ID and the local model ID match
6868 And the prediction for "<input_data>" is "<prediction>"
69+ And the number of leaves is "<leaves#>"
6970 """
7071 show_doc (self .test_scenario1 )
7172 headers = ["data" , "source_wait" , "dataset_wait" , "model_wait" ,
7273 "pmml" , "exported_file" , "input_data" , "prediction" ,
73- "model_conf" ]
74+ "model_conf" , 'leaves#' ]
7475 examples = [
7576 ['data/iris.csv' , '10' , '10' , '10' , False ,
76- './tmp/model.json' , {}, "Iris-setosa" , '{}' ],
77+ './tmp/model.json' , {}, "Iris-setosa" , '{}' , 9 ],
7778 ['data/iris.csv' , '10' , '10' , '10' , False ,
7879 './tmp/model_dft.json' , {}, "Iris-versicolor" ,
79- '{"default_numeric_value": "mean"}' ]]
80+ '{"default_numeric_value": "mean"}' , 9 ]]
8081 for example in examples :
8182 example = dict (zip (headers , example ))
8283 show_method (self , self .bigml ["method" ], example )
@@ -97,6 +98,7 @@ def test_scenario1(self):
9798 model_create .check_model_id_local_id (self )
9899 model_create .local_model_prediction_is (
99100 self , example ["input_data" ], example ["prediction" ])
101+ model_create .check_leaves_number (self , example ["leaves#" ])
100102
101103 def test_scenario2 (self ):
102104 """
0 commit comments