Thanks Andy
From: Yanbo Liang <[email protected]> Date: Wednesday, January 13, 2016 at 6:29 AM To: Andrew Davidson <[email protected]> Cc: "user @spark" <[email protected]> Subject: Re: ml.classification.NaiveBayesModel how to reshape theta > Yep, row of Matrix theta is the number of classes and column of theta is the > number of features. > > 2016-01-13 10:47 GMT+08:00 Andy Davidson <[email protected]>: >> I am trying to debug my trained model by exploring theta >> Theta is a Matrix. The java Doc for Matrix says that it is column major >> formate >> >> I have trained a NaiveBayesModel. Is the number of classes == to the number >> of rows? >> >> int numRows = nbModel.numClasses(); >> >> int numColumns = nbModel.numFeatures(); >> >> >> >> Kind regards >> >> >> >> Andy >
