How to train digitTrain4DArrayData (Inbuilt matlab digit data) using Naive bayesian (fitcnb).
Converted 4D data into 2D. ( Tried reading MNIST data from external .csv file also)
inputs ( 60000*784) double
targets (6000*1) (tried with double and categorial type)
While training it is showing some error like : A normal distribution cannot be fir for the combination of class 1 and predictor X1. The data has zero variance.