SMILE.NET Error -1 on learn method

The engine.
Post Reply
s.bakunowicz
Posts: 2
Joined: Mon Nov 02, 2020 12:06 pm

SMILE.NET Error -1 on learn method

Post by s.bakunowicz »

Hi. I'm trying to learn network from file and randomly get error -1 for generated file. File works fine on GeNie so I assume there's something wrong on SMILE or, most probably, in my code/file.

Example file:
exampleDataset.txt
(227.34 KiB) Downloaded 249 times
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);
Same error occurred on BayesianSearch.

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.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: SMILE.NET Error -1 on learn method

Post by shooltz[BayesFusion] »

The spcop column in your data file is constant and cannot be used for learning.

To get more detailed error messages, use GeNIe's Data/Learn New Network command.
s.bakunowicz
Posts: 2
Joined: Mon Nov 02, 2020 12:06 pm

Re: SMILE.NET Error -1 on learn method

Post by s.bakunowicz »

You're right, thank you!
Post Reply