Thanks
Andy
From: Yanbo Liang
Date: Wednesday, January 13, 2016 at 6:29 AM
To: Andrew Davidson
Cc: "user @spark"
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
> nu
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 :
> 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 tra
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(