Я новичок в accord.net
и я пытаюсь применить шаг за шагом следующий код из этого page в простое применение Visual Studio C#
Образец Accord.NET Наивные-Байеса
Шифр разделе «Стандартные проблемы классификации» была применена без проблем, но когда я пытаюсь применить код из раздела «Наивные Байеса» во время выполнения я получил исключение с этим Дайте описание
unhandled exception of type System.AggregateException occurred in mscorlib.dll
без дальнейшего Дайте описание.
Это происходит в следующей команде
var nb = learner.Learn(inputs, outputs)
Мой код выглядит следующим образом
DataTable table = new celReader("examples.xls").GetWorksheet("Classification - Yin Yang");
// Convert the DataTable to input and output vectors
double[][] inputs = table.ToArray<double>("X", "Y");
int[] outputs = table.Columns["G"].ToArray<int>();
// Plot the data
ScatterplotBox.Show("Yin-Yang", inputs, outputs).Hold();
var learner = new NaiveBayesLearning<NormalDistribution>();
// Estimate the Naive Bayes
var nb = learner.Learn(inputs, outputs); // this is where exception is thrown
// Classify the samples using the model
int[] answers = nb.Decide(inputs);
// Plot the results
ScatterplotBox.Show("Expected results", inputs, outputs);
ScatterplotBox.Show("Naive Bayes results", inputs, answers).Hold();
StackTrace моей программы
Вы можете разместить StackTrace исключительной ситуации? Вы проверили в отладке, какая линия ломается? – tchrikch
@tchrikch обновленный –