// PredictProbas return log-probability estimates.
PredictProbas return log-probability estimates.
// PredictProbas return log - probability estimates .
func (m *BaseNB) PredictProbas(Xmatrix mat.Matrix, Ymutable mat.Mutable) *mat.Dense {
	X, Y := base.ToDense(Xmatrix), base.ToDense(Ymutable)
	if Y.IsEmpty() {
		fanOut := len(m.Classes)
		Y = mat.NewDense(X.RawMatrix().Rows, fanOut, nil)
	}
	m.PredictLogProbas(X, Y)
	Y.Apply(func(_, _ int, v float64) float64 { return math.Exp(v) }, Y)
	return base.FromDense(Ymutable, Y)
}
func ( m * BaseNB ) PredictProbas ( Xmatrix mat . Matrix , Ymutable mat . Mutable ) * mat . Dense { X , Y := base . ToDense ( Xmatrix ) , base . ToDense ( Ymutable ) if Y . IsEmpty ( ) { fanOut := len ( m . Classes ) Y = mat . NewDense ( X . RawMatrix ( ) . Rows , fanOut , nil ) } m . PredictLogProbas ( X , Y ) Y . Apply ( func ( _ , _ int , v float64 ) float64 { return math . Exp ( v ) } , Y ) return base . FromDense ( Ymutable , Y ) }
PredictProbas return log-probability estimates.
PredictProbas return log - probability estimates .