Search found 15 matches

by gund
Fri Oct 23, 2009 12:23 am
Forum: SMILE
Topic: Value of control
Replies: 1
Views: 4704

Value of control

Any idea whether value of control calculation can be incorporated into the package?

It's slightly different than value of information calculation.
by gund
Thu Sep 24, 2009 1:07 pm
Forum: SMILE
Topic: Is there a method to get a sample based on the BN/ID?
Replies: 2
Views: 5436

I just read the help about Generate Data File. Yes that would be what I was looking for.

It's ok though, I just wrote some code to do the same thing.
by gund
Thu Sep 24, 2009 8:16 am
Forum: SMILE
Topic: Is there a method to get a sample based on the BN/ID?
Replies: 2
Views: 5436

Is there a method to get a sample based on the BN/ID?

Wondering whether there's a build-in way to get a random sample based on the model and evidence.

Can't find one in the current API, but I'm sure there's code in the library that does that right?

BTW thanks for all the answers to questions I have posted, and I have posted quite a lot.
by gund
Fri Sep 18, 2009 2:34 am
Forum: SMILE
Topic: How to find joint marginal distribution?
Replies: 4
Views: 12055

Ah ok thanks. Not a big problem.

Edit: I noticed in GeNIe there's a button called P(e). Looks like for BNs, you can set the evidence as the joint marginal probability you are interested in, and it will calculated the P(evidence).
by gund
Thu Sep 17, 2009 8:56 am
Forum: SMILE
Topic: How to find joint marginal distribution?
Replies: 4
Views: 12055

How to find joint marginal distribution?

When I update beliefs in an influence diagram, the values in the chance nodes are conditional marginal probability distributions (conditioned on the informational nodes and/or decision nodes).

Can I obtain joint marginal distributions by calling some method?

Basically instead of P(node A = state0 ...
by gund
Wed Sep 16, 2009 10:47 am
Forum: SMILE
Topic: Find best policy algo vs policy evaluation algo
Replies: 4
Views: 10731

Here it is.

Sorry it's a little convoluted hehe. Messed around with it. I was trying to see if I could answer the question of VOI by phrasing it as another decision node.

Have another question.

How is value of information calculated? Does it use the policy evaluation algo or the find best policy ...
by gund
Wed Sep 16, 2009 8:16 am
Forum: SMILE
Topic: Find best policy algo vs policy evaluation algo
Replies: 4
Views: 10731

Find best policy algo vs policy evaluation algo

I have a test ID that using "policy evaluation" algo, gives me some decision A (correct one) as the decision with the highest expected utility, but using "find best policy", gives me decision B (last decision always) as the optimal policy.

Not sure why this would be the case.

Is there any ...
by gund
Wed Sep 16, 2009 7:35 am
Forum: SMILE
Topic: noisy-max question
Replies: 5
Views: 10989

Thanks for the info about noisy-max nodes.

I noticed the ability to create equation nodes in GeNIe. Without any documentation I'm not sure how to do the same in SMILE. Could you elaborate a little or paste some sample code?
by gund
Fri Sep 11, 2009 9:14 pm
Forum: SMILE
Topic: noisy-max question
Replies: 5
Views: 10989

noisy-max question

I was reading the Genie documentation and it says
At the moment, GeNIe does not take any computational advantage of the Noisy-MAX nodes in its reasoning algorithms and uses them purely as a useful knowledge engineering tool.

Is that true for SMILE too?

If one could replace a typical chance node ...
by gund
Thu Sep 10, 2009 3:46 pm
Forum: SMILE
Topic: Getting different bugs with .dsl and .xdsl
Replies: 7
Views: 13452


The .dsl should work 100% for truthtables. Can you post your code and network here? I would be able to determine if it's .dsl bug or the code is written incorrectly.

Definitely an inconsistency here.

Ok the output for writing to .dsl produces for node r1
RESULTINGSTATES = (State0, State0 ...
by gund
Thu Sep 10, 2009 3:27 pm
Forum: SMILE
Topic: Curious why one way of setting outcomes fails.
Replies: 2
Views: 6297

Ah ok thanks that clears it up.
by gund
Thu Sep 10, 2009 2:53 am
Forum: SMILE
Topic: Curious why one way of setting outcomes fails.
Replies: 2
Views: 6297

Curious why one way of setting outcomes fails.

SMILE allows me to use AddOutcome() but doesn't allow me to use SetNumberOfOutcomes(int). It returns a -19 DSL_WRONG_NUM_STATES error.

It's a decision node with no parents. Anybody know why the code does not let me set an arbitrary number of outomes with SetNumberOfOutcomes(int) but allows me to do ...
by gund
Wed Sep 09, 2009 9:56 pm
Forum: SMILE
Topic: Getting different bugs with .dsl and .xdsl
Replies: 7
Views: 13452

Thanks man you have been great. Unfortunately it still doesn't work. Reading from the truthtable afterwards will again produce the default values.

Is there a way to set the resulting states by giving the integer index of the state instead of a string?

I guess in the end I will stick with using ...
by gund
Wed Sep 09, 2009 5:52 pm
Forum: SMILE
Topic: Getting different bugs with .dsl and .xdsl
Replies: 7
Views: 13452

Thanks for the quicky reply.

My C++ is quite bad, so I'm thinking this code I wrote doesn't work because it is setting another truth table instead of the one I want.

Code:
DSL_stringArray elephant;
elephant.Add("State1");
elephant.Add("State1");
for (int i = 0; i < elephant.NumItems(); i ...
by gund
Wed Sep 09, 2009 9:14 am
Forum: SMILE
Topic: Getting different bugs with .dsl and .xdsl
Replies: 7
Views: 13452

Getting different bugs with .dsl and .xdsl

Hi I am having some problems with running SMILE on a Linux machine.

I have gcc version 4.0.0 20050519 (Red Hat 4.0.0-8 ) and use smile_1_1_linux_gcc_4_1_1.tar.gz. Is this a problem if the compiler versions are different?

I get different bugs depending on whether I write to .dsl or read from .xdsl ...