jeudi 13 juillet 2017

generate a set of numbers by Naive Bayes

If I have a dataset as a observation, i.e. A=[15 11; 16 13; 16 2; 7 0.4; 7 1; 16 2; 5 1.02; 7 10]; The corresponding value of each row in A is B=[3; 4; 2; 5;9; 7; 9; 11];

My question is how to generate a set of numbers that followed by the Naive Bayes training. I tried to use fitcnb(A,B,'Distribution',{'kernel','kernel'}),the numbers generated did not following the as the distribution of B.




Aucun commentaire:

Enregistrer un commentaire