run_greedy_ctbn_ssl.m 589 Bytes
Newer Older
dlinzner-bcs's avatar
 
dlinzner-bcs committed
1
2
3
4
5
6
7
8
9
10
11
%performs greedy structure search
%needs a params.mat and a data.mat in same folder (see readme)
%output: Nodem: estimated ctbn at different iterations
%        node : final estimated ctbn at different iterations
%        C    : estimated edge probabilities
%        F    : value of objective function at different iterations
addpath(genpath('ssl-ctbn-code'))

%maximal number of parents in greedy search
K=2;
%name of experiment
dlinzner-bcs's avatar
dlinzner-bcs committed
12
name=sprintf('my_test_run_%d_%dparents',1,K);
dlinzner-bcs's avatar
 
dlinzner-bcs committed
13
14
15
%number of workers running in parallel
mworkers=2;
ctbn_gradient_structure_learning_dims_greedy(name,mworkers,K)