can't load file size o vector distinguished state is invalid

The front end.
Post Reply
thealpinebeast
Posts: 5
Joined: Sat Sep 11, 2010 4:28 pm

can't load file size o vector distinguished state is invalid

Post by thealpinebeast »

i am the beginner with genie,

i use a Bayesian network for my thesis, after i completed the cpt's for my net..i saved and then i couldnt reload the xdsl
the message on the output window was ' can't load file..size of distinguished vector state is invalid...

can i retrieve this file? if anyone can shed some light, i would appreciate it ...

my email is thealpinebeast@yahoo.gr if somebody want to send an email

thanks in advance
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: can't load file size o vector distinguished state is inv

Post by shooltz[BayesFusion] »

thealpinebeast wrote:can't load file..size of distinguished vector state is invalid
This looks like a bug in noisy-adder code. Did you use noisy-adder nodes in your network?
thealpinebeast
Posts: 5
Joined: Sat Sep 11, 2010 4:28 pm

Re: can't load file size o vector distinguished state is inv

Post by thealpinebeast »

yep, i did...most nodes are noisy adder....is there a way to fix it?
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: can't load file size o vector distinguished state is inv

Post by shooltz[BayesFusion] »

thealpinebeast wrote:yep, i did...most nodes are noisy adder....is there a way to fix it?
If GeNIe doesn't load the file, the only option remaining is manual edit (use Notepad or any text/XML editor) - the error message should give you the exact location of a problem and the expected number of items in the distinguished state vector.
thealpinebeast
Posts: 5
Joined: Sat Sep 11, 2010 4:28 pm

Re: can't load file size o vector distinguished state is inv

Post by thealpinebeast »

i tried to fix it via a txt file but i couldnt find what was wrong?
anyway i did the whole thing again from the beginning but i would to track down what went wrong in case it happened again
thanks anyway i ll upload the file for a more experienced user to see whats wrong
Attachments
network marl ii.xdsl
(20.58 KiB) Downloaded 314 times
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: can't load file size o vector distinguished state is inv

Post by shooltz[BayesFusion] »

Edit the line 93 in the file - remove the trailing zero in the <dstates> element. The file should load OK after this change.
thealpinebeast
Posts: 5
Joined: Sat Sep 11, 2010 4:28 pm

Re: can't load file size o vector distinguished state is inv

Post by thealpinebeast »

shooltz wrote:Edit the line 93 in the file - remove the trailing zero in the <dstates> element. The file should load OK after this change.
thanks a lot my friend, i really appreciate the time you spent for this..
if something like this happen in the future i should now know how to fix it
thanks again
Steffen
Posts: 1
Joined: Fri May 27, 2011 2:21 pm

Re: can't load file size o vector distinguished state is inv

Post by Steffen »

The bug still remains. There is an error in the xdsl saving routine associated with Noisy Adder nodes.

You can easily reproduce this. Just add two noisy-adder nodes (node 1 and node 2), connect node 1 -> node 2, remove the connection and save the network to a xdsl file. Genie won't be able to open the network because of a wrong <dstate> attribute of node 2 in the xdsl file. It still contains two entries instead of one.

Would be nice if this could be fixed in a further release of Genie.

Anyway, love the Genie and Smile project! I am using it heavily and haven't found any other bugs so far... Keep up the good work!

Steffen
Post Reply