Search found 20 matches

by petcai
Wed Dec 04, 2013 10:26 pm
Forum: SMILE
Topic: How to specify bin edges for discretization
Replies: 5
Views: 10448

Re: How to specify bin edges for discretization

Thanks, shooltz. I am asking the functionalities rather than the gui. Now I understand how to do it.
by petcai
Tue Dec 03, 2013 10:39 pm
Forum: SMILE
Topic: How to specify bin edges for discretization
Replies: 5
Views: 10448

Re: How to specify bin edges for discretization

Thanks, shooltz.

Could you please also provide any hints on how Genie allow users to modify bin edges for discretization? I really need to specify the bin edges manually rather than automatically by DSL_discretizer. Thanks.
by petcai
Mon Dec 02, 2013 6:28 am
Forum: SMILE
Topic: How to specify bin edges for discretization
Replies: 5
Views: 10448

How to specify bin edges for discretization

I would like to specify bin edges for discretization. The following is my code:
vector<double> vctEdge;
vctEdge.push_back(21.0);
vctEdge.push_back(31.0);
vctEdge.push_back(41.0);
vctEdge.push_back(51.0);
vctEdge.push_back(61.0);
vctEdge.push_back(66.0);
vctEdge.push_back(71.0);
vctEdge.push ...
by petcai
Fri Nov 22, 2013 12:49 am
Forum: SMILE
Topic: How to set temporal probability matrix
Replies: 1
Views: 5250

How to set temporal probability matrix

How can you set temporal probability when a node has a temporal arc to another node? I can see the node definition has a method call SetTemporalDefinition. It takes order and double array as parameters which seems only work for temporal arc to the node itself. Thanks.
by petcai
Fri Nov 22, 2013 12:43 am
Forum: SMILE
Topic: Merge two networks
Replies: 5
Views: 9604

Re: Merge two networks

Thanks, shooltz.
by petcai
Mon Nov 18, 2013 1:44 am
Forum: SMILE
Topic: Merge two networks
Replies: 5
Views: 9604

Re: Merge two networks

I changed to use FastCopy. Now the program run to the last line and crash when save the new network as follows:

DSL_network netFrom, netTo;
netFrom.ReadFile("StaticNet.xdsl");

netTo.Copy(netFrom);

DSL_node* pNodeFrom;
DSL_node* pNodeTo;
int iNodeFrom;
int iNodeTo;

// Get all nodes from ...
by petcai
Sun Nov 17, 2013 11:12 pm
Forum: SMILE
Topic: Merge two networks
Replies: 5
Views: 9604

Re: Merge two networks

1) I first got each node from network F and add it into another network T.
2) I then got each child C of each node N in F and added an arc from N to C in network T.
3) And then copy the dmatrix as follows:

DSL_Dmatrix* pDmatProb = pntNodeFrom->Definition()->GetMatrix();
pntNodeTo->Definition ...
by petcai
Fri Nov 15, 2013 1:27 am
Forum: SMILE
Topic: Merge two networks
Replies: 5
Views: 9604

Merge two networks

Hi,

I am wondering how to merge two networks into one? In particular, I would like to clone a network and combine the two copies into one network and then add connections between them. I have tried to copy the network, add new nodes to the new network and clone the node definitions and node ...
by petcai
Thu Nov 14, 2013 11:36 pm
Forum: SMILE
Topic: How to apply filter in DSL_dataset
Replies: 2
Views: 7041

Re: How to apply filter in DSL_dataset

Thanks, Martijn. Your reply is very useful.
by petcai
Thu Nov 14, 2013 10:30 pm
Forum: SMILE
Topic: How to apply filter in DSL_dataset
Replies: 2
Views: 7041

How to apply filter in DSL_dataset

Hi,

How do you use filter in DSL_dataset? How to construct a filter to pass to DSL_dataset.ApplyFilter()? I would like to apply a filter to select some variables in a dataset for structure learning by smilearn. I see you are able to select variables in Genie, but can you do it in smilearn? Thanks ...
by petcai
Wed Nov 13, 2013 2:27 am
Forum: SMILE
Topic: Structure learning for DBN
Replies: 3
Views: 8413

Re: Structure learning for DBN

Thank you, shooltz. Is there any chance that the documents for smile/smilearn will be updated soon? It looks that documents for quite a number of classes are out of date. Thanks.
by petcai
Mon Nov 11, 2013 1:21 am
Forum: SMILE
Topic: libstdc++ and libc++ problem in osx 10.9
Replies: 10
Views: 20705

Re: libstdc++ and libc++ problem in osx 10.9

Thanks, Shooltz. I am currently working with the windows version. I will check this out later.
by petcai
Mon Nov 11, 2013 1:19 am
Forum: SMILE
Topic: Structure learning for DBN
Replies: 3
Views: 8413

Structure learning for DBN

Hi,

I am wondering how to do structure learning for DBNs, i.e. what the dataset look like and what are the steps to learn the structure using Smilearn/Genie.

I can create a dataset where each record contains value for each variables in two time slices. For example:
a b c a_0 b_0 c_0
1 10 3 2 20 5 ...
by petcai
Wed Nov 06, 2013 1:19 pm
Forum: SMILE
Topic: libstdc++ and libc++ problem in osx 10.9
Replies: 10
Views: 20705

Re: libstdc++ and libc++ problem in osx 10.9

petercai$ ls -l /usr/bin/llvm*
lrwxr-xr-x 1 root wheel 7 4 Nov 16:41 /usr/bin/llvm-g++ -> clang++
lrwxr-xr-x 1 root wheel 5 4 Nov 16:41 /usr/bin/llvm-gcc -> clang
by petcai
Wed Nov 06, 2013 12:49 pm
Forum: SMILE
Topic: libstdc++ and libc++ problem in osx 10.9
Replies: 10
Views: 20705

Re: libstdc++ and libc++ problem in osx 10.9

1)
petercai$ which g++
/usr/bin/g++

petercai$ ls -L /usr/bin/g++
/usr/bin/g++

2)
petercai$ file *.a
libsmile.a: Mach-O universal binary with 2 architectures
libsmile.a (for architecture x86_64): current ar archive random library
libsmile.a (for architecture i386): current ar archive random library ...