Closed nhnminh closed 7 years ago
This pull request has two small changes: update Gaussian Estimator, and Entropy in SplitCriterion
Statistics.normalProbability((splitValue - getMean()) / stdDev())
Statistics.normalProbability((splitValue - getMean()) / stdDev()) * weightSum - eqWeight
Reason: Imitate MOA's equation in computing weights for Gaussian Estimator
else
Reason: : Imitate MOA's equation.
Test for these changes:
Run this command to make sure it's runnable: ./spark.sh "EvaluatePrequential -l (trees.HoeffdingTree -l 0 -t 0.05 -g 200 -o) -s (FileReader -f ../data/electNormNew.arff -k 4000 -d 10)" 1> resu.res 2> log.log
./spark.sh "EvaluatePrequential -l (trees.HoeffdingTree -l 0 -t 0.05 -g 200 -o) -s (FileReader -f ../data/electNormNew.arff -k 4000 -d 10)" 1> resu.res 2> log.log
This pull request has two small changes: update Gaussian Estimator, and Entropy in SplitCriterion
Statistics.normalProbability((splitValue - getMean()) / stdDev())
Statistics.normalProbability((splitValue - getMean()) / stdDev()) * weightSum - eqWeight
Reason: Imitate MOA's equation in computing weights for Gaussian Estimator
else
clause.Reason: : Imitate MOA's equation.
Test for these changes:
Run this command to make sure it's runnable:
./spark.sh "EvaluatePrequential -l (trees.HoeffdingTree -l 0 -t 0.05 -g 200 -o) -s (FileReader -f ../data/electNormNew.arff -k 4000 -d 10)" 1> resu.res 2> log.log