Search found 19 matches

by nikkne
Tue Jul 01, 2008 1:57 pm
Forum: SMILE
Topic: Using SMILE for Influence Diagrams
Replies: 6
Views: 7737

Thanks! I read the post on the Indexing parents, but I fail to understand how it relates to my question. Indexing parents are parents , not the predecessors, so I don't see how to make the connection. Another question on the same topic. Shachter's algorithm require expectations for values nodes, rig...
by nikkne
Tue Jul 01, 2008 10:09 am
Forum: SMILE
Topic: GetIndexingParents
Replies: 1
Views: 3778

GetIndexingParents

Hi, Whenever I call this function, the returned set is empty, although the node has 5 parents. According to the documentation, this function should return the list of node's indexing parents. IIUC, this means that the list should contain node's parents in the order they are used for setting the inde...
by nikkne
Tue Jul 01, 2008 9:39 am
Forum: SMILE
Topic: Using SMILE for Influence Diagrams
Replies: 6
Views: 7737

Thanks! What I don't understand from the example is how one finds the "best" values in the decision nodes, which yield the maximum utility, based on evidences. Example iterates through the list of indexing parents, which is enough if the network/ID is of height 1. What to do when the netwo...
by nikkne
Mon Jun 30, 2008 4:29 pm
Forum: SMILE
Topic: Using SMILE for Influence Diagrams
Replies: 6
Views: 7737

Using SMILE for Influence Diagrams

Hi, I have a rather simple question about SMILE. If I want to use it for solving Influence Diagrams, is this the usual workflow: - set the graph/read it from the file - manually update the probabilities based on the dataset - calculate the expected values for utility nodes - set some of the nodes as...
by nikkne
Thu Jun 26, 2008 3:56 pm
Forum: SMILE
Topic: Outcomes
Replies: 1
Views: 3760

Outcomes

Hi, In my program, I read the network file, which has the default outcome names. I would like to update the outcomes dynamically (ie. while I read the data set from the separate file). So, I thought that by doing RemoveOutcome(i) or SetNumberOfOutcomes(0) I would annulate current outcomes. Well, it ...
by nikkne
Fri Jun 20, 2008 5:42 pm
Forum: SMILE
Topic: IndexToCoordinates
Replies: 1
Views: 3894

IndexToCoordinates

Hi, I'm encountering something really strange. According to the documentation, IndexToCoordinates() should convert flat index to coordinates, for a given DSL_Dmatrix. When I try this: std::cout << "MI4 " << kam.GetNumberOfDimensions() << std::endl; std::cout << "MI4 " << kam.GetS...
by nikkne
Tue Apr 29, 2008 6:23 pm
Forum: SMILE
Topic: ReadFile segfaulting
Replies: 3
Views: 5408

Re: ReadFile segfaulting

:) I'll do that right away... I discovered that I don't need to call ReadFile at all, to get segfault. If I call theNet.Header().SetId("test"); it segfaults. Solved! :) I had a bug with pthreads. The object which contained theNet was created inside main(), which passed pointer to it to ot...
by nikkne
Tue Apr 29, 2008 4:24 pm
Forum: SMILE
Topic: ReadFile segfaulting
Replies: 3
Views: 5408

Re: ReadFile segfaulting

Can you write simple app which doesn't link to any other external library except SMILE and just calls ReadFile, then exits? If you get the segfault in that case, post the 'brutally simple file' here - maybe it's brutal, but not that simple :) :) I'll do that right away... I discovered that I don't ...
by nikkne
Tue Apr 29, 2008 3:11 pm
Forum: SMILE
Topic: ReadFile segfaulting
Replies: 3
Views: 5408

ReadFile segfaulting

Hi, when I try to call theNet.ReadFile("/home/nikkne/test.xdsl"); it segfaults. File exists, it was created by WriteFile() call, and is brutally simple. coredump's backtrace shows this: Program terminated with signal 11, Segmentation fault. #0 0x080f39c9 in DSL_header::SetId () (gdb) bt #0...
by nikkne
Wed Apr 09, 2008 2:08 pm
Forum: SMILE
Topic: Utilities in Influence diagrams
Replies: 1
Views: 4015

Utilities in Influence diagrams

Hi all, I have a naive question :( I have an influence diagram matching a real-world experiment. This diagram has only one utility node, and in the experiment I can observe the value corresponding to this utility node. Since the utility node maps utility value to the values in the parents node in th...
by nikkne
Wed Apr 09, 2008 2:02 pm
Forum: SMILE
Topic: Problem with linking
Replies: 4
Views: 6772

Weird, yet documented :)

Thanks!
by nikkne
Mon Apr 07, 2008 10:01 pm
Forum: SMILE
Topic: Problem with linking
Replies: 4
Views: 6772

Thanks! That worked...
I included Xlinker when I was desperate what can be the cause.

So, why this works?
by nikkne
Mon Apr 07, 2008 9:02 pm
Forum: SMILE
Topic: Problem with linking
Replies: 4
Views: 6772

Problem with linking

Hi, when I try to link against libsmile.a, I get the following errors: /usr/lib/gcc/i486-linux-gnu/3.4.6/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o skuld /usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/crt1.o /usr/lib/gcc/i486-linux-gnu/3.4.6/../../../../lib/crti.o /...
by nikkne
Mon Mar 31, 2008 3:06 pm
Forum: SMILE
Topic: novice question...
Replies: 7
Views: 8598

Thanks Mark. I understand this.
I was referring to the case where I cannot go through the complete dataset (online incremental learning).
by nikkne
Sun Mar 30, 2008 9:42 pm
Forum: SMILE
Topic: novice question...
Replies: 7
Views: 8598

I have two questions... 1. how exactly Normalize() works? 2. Is there a better way of updating CPTs for a node, then this algorithm: count <- number of observations for a Node foreach dimension in CPT p <- probability in the CPT if this is the dimension we need to update p <- (p*count+1)/(count+1) e...