solving undirected arcs

The engine.
Post Reply
nordic
Posts: 14
Joined: Wed Sep 25, 2013 5:16 pm

solving undirected arcs

Post by nordic »

hi,
it's me...again...
I've learned a extreme simple Network with two nodes with smileearn with the following code

Code: Select all

     if ( structLearn.Learn( trainData, pattern) != DSL_OKAY)
     {
         cout << ErrorH.GetLastErrorMessage() << endl;
         return false;
     }

//     PrintDataset(trainData);

     // convert pattern to DAG
     if (!pattern.ToDAG())
     {
         cout << ErrorH.GetLastErrorMessage() << endl;
         return false;
     }

     // convert pattern to network
     if ( !pattern.ToNetwork(trainData, network.getDSLNetwork()) )
     {
         cout << ErrorH.GetLastErrorMessage() <<endl;
         return false;
     }
and the attached trainData. When i compare the resulting network with the one learned with Genie (pc algorithm, default parameter, version 2.0.4843.0) the arc is reversed...it point's from objectclass to Area instead of the opposite... but why? I thought clicking the "Create DAG" Button in Genie works the same as the DSL_pattern::ToNetwork() method? What would i have to do, to get the same results with GeNIe and SMILE ?

thanks in advance,
nordic
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: solving undirected arcs

Post by Martijn »

Hi Nordic,

It seems your training data is missing, could you repost it.
I'll have a look. I implemented the code responsible for converting patterns into DAGs.
Both GeNIe and SMILE should be using the same code.

Martijn
nordic
Posts: 14
Joined: Wed Sep 25, 2013 5:16 pm

Re: solving undirected arcs

Post by nordic »

oh, i guess i just forgot it...
Attachments
discretizedTrain.txt
(239 Bytes) Downloaded 361 times
Martijn
Posts: 76
Joined: Sun May 29, 2011 12:23 am

Re: solving undirected arcs

Post by Martijn »

Hi Nordic,

We've tracked down a bug causing your problem and have fixed it.
We've updated the GeNIe installer on our downloads page.

After reinstalling everything should be fine.

Best,

Martijn
Post Reply