Example file: What I do is simple load DataSet from file, creates new NaiveBayes object, set ClassVariableId and call Learn method on NaiveBayes object. Error is occurring on Learn method.
So it's something like this:
Code: Select all
var ds = new DataSet();
ds.ReadFile(filePath);
var naiveBayes = new NaiveBayes
{
ClassVariableId = classVariableId
};
naiveBayes.Learn(ds);
I'm generating those files by splitting main dataset on k-parts and some of them works but some of them not, in theory they are identical.
Thanks in advance.