Consumed problem about EM learning

The engine.
Post Reply
musicpxg
Posts: 19
Joined: Sat Feb 16, 2013 6:24 am

Consumed problem about EM learning

Post by musicpxg »

Hi,

I found that if I repeated to run my code, an error occurred randomly as follow:

smile.SMILEException: SMILE error -1 in function Learn. Logged information: em: please run with relevance enabled

My code is based on java, and it is a smile main(), each time, the programe automatically close after the calculation.

Thank you!
Best wishes,
Yang
musicpxg
Posts: 19
Joined: Sat Feb 16, 2013 6:24 am

Re: Consumed problem about EM learning

Post by musicpxg »

I tried to run the code 5 times, 1st, 2nd, 4 and 5 works. The 3rd one reported such an error.

I tried again, the error occurred randomly.
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Consumed problem about EM learning

Post by shooltz[BayesFusion] »

Follow the advice from the exception message and call EM.setRelevance(true)
musicpxg
Posts: 19
Joined: Sat Feb 16, 2013 6:24 am

Re: Consumed problem about EM learning

Post by musicpxg »

Thank you! But what is EM.setRelevance(true) means?

Best wishes,
Yang
marek [BayesFusion]
Site Admin
Posts: 430
Joined: Tue Dec 11, 2007 4:24 pm

Re: Consumed problem about EM learning

Post by marek [BayesFusion] »

It allows the program to use relevance reasoning, which makes calculations more efficient. The answer to your question is in GeNIe help file (the section describing parameter learning and the EM algorithm).
I hope this helps,

Marek
Post Reply