diff options
| author | Shulhan <ms@kilabit.info> | 2023-05-20 13:42:39 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-05-20 13:44:07 +0700 |
| commit | 3eae1d3df5eeef14f9e8389895bb6b835ac2cf78 (patch) | |
| tree | f35ca6c111bed2ecf85ada965accf22ce83d3e8c /lib/mining/classifier/rf | |
| parent | f43b8ead50575c6a279bef403af0204df98323c9 (diff) | |
| download | pakakeh.go-3eae1d3df5eeef14f9e8389895bb6b835ac2cf78.tar.xz | |
all: remove any usage of debug.Value in all packages
Using global debug value for all packages turns out is not a good
idea.
Diffstat (limited to 'lib/mining/classifier/rf')
| -rw-r--r-- | lib/mining/classifier/rf/rf.go | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/mining/classifier/rf/rf.go b/lib/mining/classifier/rf/rf.go index 38612b97..3eb08aec 100644 --- a/lib/mining/classifier/rf/rf.go +++ b/lib/mining/classifier/rf/rf.go @@ -15,7 +15,6 @@ import ( "fmt" "math" - "github.com/shuLhan/share/lib/debug" "github.com/shuLhan/share/lib/floats64" "github.com/shuLhan/share/lib/ints" "github.com/shuLhan/share/lib/mining/classifier" @@ -147,10 +146,6 @@ func (forest *Runtime) Build(samples tabula.ClasetInterface) (e error) { // (1) for t := 0; t < forest.NTree; t++ { - if debug.Value >= 1 { - fmt.Println(tag, "tree #", t) - } - // (1.1) for { _, _, e = forest.GrowTree(samples) @@ -191,11 +186,6 @@ func (forest *Runtime) GrowTree(samples tabula.ClasetInterface) ( bagset := bag.(tabula.ClasetInterface) - if debug.Value >= 2 { - bagset.RecountMajorMinor() - fmt.Println(tag, "Bagging:", bagset) - } - // (2) cart, e := cart.New(bagset, cart.SplitMethodGini, forest.NRandomFeature) @@ -219,19 +209,11 @@ func (forest *Runtime) GrowTree(samples tabula.ClasetInterface) ( stat.End() - if debug.Value >= 3 && forest.RunOOB { - fmt.Println(tag, "Elapsed time (s):", stat.ElapsedTime) - } - forest.AddStat(stat) // (6) if forest.RunOOB { forest.ComputeStatFromCM(stat, cm) - - if debug.Value >= 2 { - fmt.Println(tag, "OOB stat:", stat) - } } forest.ComputeStatTotal(stat) |
