From 702b14437f1a121837757c940c8893cc01b5b375 Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Wed, 17 Jul 2013 07:36:58 -0400 Subject: [PATCH] Better stratification, using Round instead of Floor. --- AVCDecisionTreeForest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AVCDecisionTreeForest.m b/AVCDecisionTreeForest.m index 1e564e4d..51c939a6 100644 --- a/AVCDecisionTreeForest.m +++ b/AVCDecisionTreeForest.m @@ -190,7 +190,7 @@ Mathematica is (C) Copyright 1988-2012 Wolfram Research, Inc. If[min == max, data, h = (max - min)/nStrata; - Map[Floor[(# - min)/h]*h + min &, data] + Map[Round[(# - min), h] + min &, data] ] ]; Stratify[data_, nStrata_Integer] := data;