Structure of Strings
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi!
I want to specify possible parameters for the naive bayes classifier. For this reason, I have created a structure with a field for each parameter and a matrix with possible values.
bayesPosParams.distribution = ['normal'; 'kernel'];
bayesPosParams.prior = ['empirical'; 'uniform'];
bayesPosParams.KSWidth = 'scalar';
bayesPosParams.KSSupport = ['unbounded'; 'positive'];
Unfortunately that does not work: ??? Error using ==> vertcat CAT arguments dimensions are not consistent.
All Strings need to have the same length. What would be the best possibility to specify the parameters nice and consistently?
Thanks in advance, Jay
0 Commenti
Risposta accettata
Andrei Bobrov
il 11 Lug 2011
bayesPosParams.distribution = {'normal'; 'kernel'};
bayesPosParams.prior = {'empirical'; 'uniform'};
bayesPosParams.KSWidth = 'scalar';
bayesPosParams.KSSupport = {'unbounded'; 'positive'};
0 Commenti
Più risposte (1)
Jay
il 11 Lug 2011
6 Commenti
Andrei Bobrov
il 12 Lug 2011
dis - cell array, and may be any operation with 'dis', as with cellarrays
Vedere anche
Categorie
Scopri di più su MATLAB Parallel Server in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!