[jSmile] DataSet.matchNetwork documentation.

The engine.
Post Reply
Kamila
Posts: 1
Joined: Wed May 07, 2008 7:27 pm

[jSmile] DataSet.matchNetwork documentation.

Post by Kamila »

I'm a new user of jSmile. I would like to ask about new method in DataSet class - matchNetwork method. It throws SMILEException only when the data and the network are different. It doesn't support the situation when the network or data are null or empty. Am I right?

Thanks in advance for help.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: [jSmile] DataSet.matchNetwork documentation.

Post by shooltz[BayesFusion] »

Generally, you'll get SMILEException when wrapped native SMILE method has finished and returned error code. In your case, passing null as network or data will most likely cause a crash. If you're getting SMILEException, you can call getMessage to get human-readable description of the problem - note that matchNetwork will succeed only if all columns in dataset can be matched to nodes in specified network.
Post Reply