From 20cb4ef8b77d8f4f5e5af2cb9fe3838b09e428c4 Mon Sep 17 00:00:00 2001 From: Saitoh Koki Date: Mon, 16 Jun 2014 15:38:48 +0900 Subject: [PATCH] minor bug fix --- ch02/stump.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ch02/stump.py b/ch02/stump.py index 841ce983..5037338f 100644 --- a/ch02/stump.py +++ b/ch02/stump.py @@ -19,6 +19,8 @@ best_acc = -1.0 +best_fi = -1.0 +best_t = -1.0 for fi in range(features.shape[1]): thresh = features[:, fi].copy() thresh.sort()