Search found 17 matches

by ermutarra
Thu May 21, 2009 3:51 pm
Forum: SMILE
Topic: Lauritzen algorithm?
Replies: 6
Views: 11829

I'm not quite sure why you mean when you ask me to post the model, I'm attaching the xdsl file generated when I learn the naive bayes network with the data I posted before.

In this model with this data I would expect P(T=55|G=0) and P(T=55|G=1) to be zero as there where no observations of T=55 when ...
by ermutarra
Thu May 21, 2009 9:51 am
Forum: SMILE
Topic: Lauritzen algorithm?
Replies: 6
Views: 11829

Yes, the data is complete.
It is a naive bayes classifier. The "G" node is the parent and the "D", "T", and "B" nodes are the children.
I have attached the data as requested.

Thank you for your help.
by ermutarra
Wed May 20, 2009 4:30 pm
Forum: SMILE
Topic: Lauritzen algorithm?
Replies: 6
Views: 11829

Lauritzen algorithm?

Hi,

I have noticed that when I use Smilearn to learn the parameters of my model I get some probabilities that are not 0, but should be!

I've tried to find out how the DSL_ALG_BN_LAURITZEN algorithm works but couldn't find any information about it. Could you please explain?

I suspect that this ...
by ermutarra
Wed May 20, 2009 10:53 am
Forum: SMILE
Topic: How do I access the values of the prior distribution?
Replies: 8
Views: 14181

I actually managed to get that code to work.

The method I was looking for to know which state the probability corresponds to is
theNames->Subscript(j)

So all is well, I was just wondering whether there is an easier/shorter way to accomplish the same thing as that code. But I'm not very bothered ...
by ermutarra
Wed May 20, 2009 8:15 am
Forum: SMILE
Topic: How do I access the values of the prior distribution?
Replies: 8
Views: 14181

Hi Shooltz,

You mention in a previous post of this thread that I should use DSL_intArray in I need to use multi-dimensional coords.

Say I have learned my model with Smilearn. It is a naive bayes classifier. So I can see the prior for the parent node as you pointed out in the previous post. Great ...
by ermutarra
Mon May 18, 2009 2:59 pm
Forum: SMILE
Topic: Unobserved state?
Replies: 1
Views: 5330

Unobserved state?

Hi,

I'm using Smilearn to learn the parameters of a naive bayes classifier. There are no missing values in the data and one of the attributed has only one possible value.

However, when I learn the parameters and I look at the .xdsl file generated for the variable that has only one value the file ...
by ermutarra
Fri May 15, 2009 12:56 pm
Forum: SMILE
Topic: Genie for Linux?
Replies: 1
Views: 5180

Genie for Linux?

Hi,

I was wondering if you have a version of Genie for Linux??

Thank you!
by ermutarra
Tue Apr 28, 2009 8:40 am
Forum: SMILE
Topic: More questions about DSL_dataset's ReadFile
Replies: 7
Views: 13578

Thanks, that clarifies things!

Yes, I suppose I should install Genie...
by ermutarra
Tue Apr 28, 2009 8:39 am
Forum: SMILE
Topic: How do I access the values of the prior distribution?
Replies: 8
Views: 14181

By the way, if I use

DSL_Dmatrix* probmatrix = theNet.GetNode(gaithandle)->Value()->GetMatrix();

instead of "Definition", then I get the posterior distribution, right?
by ermutarra
Tue Apr 28, 2009 8:19 am
Forum: SMILE
Topic: How do I access the values of the prior distribution?
Replies: 8
Views: 14181

This works great!!

Thank you very much.

PS: Could I suggest that you update the docs and the tutorials? We would give you so much less hassle if they were up to date :)
by ermutarra
Mon Apr 27, 2009 4:01 pm
Forum: SMILE
Topic: More questions about DSL_dataset's ReadFile
Replies: 7
Views: 13578

More questions about DSL_dataset's ReadFile

Hi,

When I use DSL_dataset's ReadFile method to read my data, say I have the following file:

3 4
2 4
1 4

Then, I've seen in the XML file that it stores the states as "State_1", "State_2" and "State_3". But does it name then in the same order it reads them so State_1 would be equal to 3, State_2 ...
by ermutarra
Mon Apr 27, 2009 3:34 pm
Forum: SMILE
Topic: How do I access the values of the prior distribution?
Replies: 8
Views: 14181

How do I access the values of the prior distribution?

Hi,

I have managed to read the data from a file, learn the naive bayes network and perform inference. After I have performed the inference I want to see what the probability distribution is for the parent node. The code I have for this is pasted below, but it gives a segmentation fault... Does ...
by ermutarra
Mon Apr 27, 2009 9:23 am
Forum: SMILE
Topic: Questions about DSL_dataset's ReadFile method
Replies: 6
Views: 15125

I also get false when trying to load the data from a file, but using the method PrintDataset from one of the tutorials I can see that the data has actually been read correctly.

Therefore, my conclusion is that in the new API false means no errors.
by ermutarra
Mon Apr 27, 2009 9:15 am
Forum: SMILE
Topic: More Smilearn tutorial compilation problems
Replies: 2
Views: 6033

This solved this problem. Thank you!!!
by ermutarra
Fri Apr 24, 2009 3:34 pm
Forum: SMILE
Topic: Questions about DSL_dataset's ReadFile method
Replies: 6
Views: 15125

Questions about DSL_dataset's ReadFile method

Hi,

I'm having trouble loading a data file and I have a few questions about this.

1. Do the variable names have to be in the first row? Can it not load a data file that does not have the variable names in the first row?

2. Do the variable states have to be a string? Can they not be numbers?

My ...