prnicolas / ScalaMl

Project, source code and data files for 1st edition "Scala for Machine Learning"
http://www.scalaformachinelearning.com
151 stars 86 forks source link

Can not run example , not initial the log in all the class . #6

Open wangxiangtao opened 9 years ago

wangxiangtao commented 9 years ago

Hi when i run test case,

there are some errors like below

image

Please advise . Thanks

prnicolas commented 9 years ago

Hi,

I could not reproduce the problem using the source code in GitHub  ScalaMl repository.  The only two possible reasons for this error are- private val logger = Logger.getLogger("XTSeries") is missing from object XTSeries it should be the first declaration in the object)- The Logger class is not loaded because the import declaration on the top of the file, 'import org.apache.log4j.Logger''  is missing  Patrick R. Nicolas http://patricknicolas.blogspot.com

 On Monday, April 6, 2015 12:07 AM, wangxiangtao <notifications@github.com> wrote:

Hi when i run test case, there are some errors like below Please advise . Thanks— Reply to this email directly or view it on GitHub.