Skip to content

Commit e50a291

Browse files
committed
Use entropy model for prediction in decision tree example
1 parent 00c05ae commit e50a291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/linfa-trees/examples/decision_tree.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fn main() -> Result<()> {
4444
.min_weight_leaf(10.0)
4545
.fit(&train)?;
4646

47-
let entropy_pred_y = gini_model.predict(&test);
47+
let entropy_pred_y = entropy_model.predict(&test);
4848
let cm = entropy_pred_y.confusion_matrix(&test)?;
4949

5050
println!("{:?}", cm);

0 commit comments

Comments
 (0)