huawei-noah / streamDM

Stream Data Mining Library for Spark Streaming
http://streamdm.noahlab.com.hk/
Apache License 2.0
492 stars 147 forks source link

Minor Changes to EvaluatePrequential #65

Closed hmgomes closed 7 years ago

hmgomes commented 7 years ago

To test these changes:

This will run RTG with MultinomialNaiveBayes and output the header in log_RTG.txt ./spark.sh "EvaluatePrequential -l (org.apache.spark.streamdm.classifiers.bayes.MultinomialNaiveBayes) -s (org.apache.spark.streamdm.streams.generators.RandomTreeGenerator) -h" 1> log_RTG.txt 2> error_RTG.txt

Similar to the previous test, but this will yield the default (previous) approach: no header. ./spark.sh "EvaluatePrequential -l (org.apache.spark.streamdm.classifiers.bayes.MultinomialNaiveBayes) -s (org.apache.spark.streamdm.streams.generators.RandomTreeGenerator)" 1> log_RTG.txt 2> error_RTG.txt

This will use the new default stream reader, i.e., RTG ./spark.sh "EvaluatePrequential -l (org.apache.spark.streamdm.classifiers.bayes.MultinomialNaiveBayes) -h" 1> log.txt 2> error.txt