Search found 61 matches

by piotr [BayesFusion]
Tue Dec 11, 2018 7:32 pm
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

self.change_evidence_and_update(net, 'e_proponer', 1, 'Bajo') self.change_evidence_and_update(net, 'e_aportar', 2, 'Bajo') self.change_evidence_and_update(net, 'e_proponer', 4, 'Medio') self.change_evidence_and_update(net, 'e_aportar', 5, 'Medio') self.change_evidence_and_update(net, 'e_colaborar',...
by piotr [BayesFusion]
Mon Nov 19, 2018 3:00 pm
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

We have noticed that something is not quite right with network definition. You probably have not set nodes definition for t=0 (ex. Proponer_E) def_ex.PNG It should be set with method set_node_definition (not like other slices - set_node_temporal_definition). Also notice, that in SMILE 'time' variabl...
by piotr [BayesFusion]
Fri Nov 16, 2018 3:04 pm
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

def print_posteriors(net, node_handle): node_id = net.get_node_id(node_handle) if net.is_evidence(node_handle): print(node_id + " has evidence set (" + net.get_outcome_id(node_handle, net.get_evidence(node_handle)) + ")") else : posteriors = net.get_node_value(node_handle) n = n...
by piotr [BayesFusion]
Tue Nov 06, 2018 10:40 am
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

Why beliefs initialization goes through 10 steps in time? It depends on Slice (Step) Count variable. You can change it by calling ex. net.set_slice_count(4) (four steps). Remember to update beliefs. How do I add evidences along time? (I have a guess on this one, but I ask it just in case I am wrong...
by piotr [BayesFusion]
Fri Nov 02, 2018 10:00 am
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

def print_posteriors(self, net, node_handle): node_id = net.get_node_id(node_handle) if net.is_evidence(node_handle): print(node_id + " has evidence set (" + net.get_outcome_id(node_handle, net.get_evidence(node_handle)) + ")") else : posteriors = net.get_node_value(node_handle)...
by piotr [BayesFusion]
Wed Oct 31, 2018 12:34 pm
Forum: SMILE
Topic: Sample code (Python preferred) for Dynamic Bayesian Network
Replies: 14
Views: 20516

Re: Sample code (Python preferred) for Dynamic Bayesian Network

I'll try to explain PySmile DBN usage based on GeNIe documentation: https://support.bayesfusion.com/docs/GeNIe/dbns_creatingdbn.html 1. Create CPT nodes, ex. net.add_node("Location") net.add_node("Rain") net.add_node("Umbrella") 2. Set node temporal types plate_explaine...
by piotr [BayesFusion]
Tue Aug 07, 2018 7:16 am
Forum: SMILE
Topic: pysmile k-fold CV
Replies: 5
Views: 8387

Re: pysmile k-fold CV

1. I'm assuming, that you initialized dataset and network properly (as ex. ds and net). node_id = "someNodeIdentifier" matching = ds.match_network(net) validator = pysmile.Validator(net, ds, matching) validator.add_class_node(node_id) em = pysmile.Learning.EM() em.learn(ds, net, matching) ...
by piotr [BayesFusion]
Mon Jul 09, 2018 1:47 pm
Forum: SMILE
Topic: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
Replies: 3
Views: 5666

Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

As you said - it's mismatch between unicode used to Python compilation. Unfortunately, we don't have build dedicated for Python builded with UCS2. At this moment, only way to use PySmile is to have Python compiled with UCS4.
by piotr [BayesFusion]
Wed Jul 04, 2018 10:16 am
Forum: SMILE
Topic: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"
Replies: 3
Views: 5666

Re: Issue importing pysmile: "undefined symbol: PyUnicodeUCS4_FromStringAndSize"

Hello,

I need some informations first, if you want me to help you.

1. Which OS you have?
2. Which Python you are using? (python -V)
3. Your Python Unicode config (print sys.maxunicode)

Best regards,
Piotr
by piotr [BayesFusion]
Tue Jun 26, 2018 9:17 am
Forum: SMILE
Topic: is exist in Validator class function for validate Virtual Evidence?
Replies: 1
Views: 3906

Re: is exist in Validator class function for validate Virtual Evidence?

Unfortunately, the only way you can do it is writing validation yourself following standards of cross validation. We have validation implemented for 'hard' evidence only.
by piotr [BayesFusion]
Fri Jun 08, 2018 9:54 am
Forum: SMILE
Topic: Em Learning Error
Replies: 1
Views: 3986

Re: Em Learning Error

It seems that your network has non-fixed deterministic and Noisy Adder nodes (which are not supported by EM algorithm). You should try other learning algorithm or modify your network to fit EM.
by piotr [BayesFusion]
Tue May 29, 2018 11:26 am
Forum: SMILE
Topic: BayesianSearch problem
Replies: 5
Views: 6592

Re: BayesianSearch problem

I tried to reproduce that error with random data, but it was ineffective. I suspect the end of RAM memory, but 24x400 DataSet is not that big. If your data is not confidential, archive your project and data into ZIP or RAR and send as attachment to support@bayesfusion.com We will do our best to help...
by piotr [BayesFusion]
Tue May 08, 2018 3:01 pm
Forum: SMILE
Topic: BayesianSearch problem
Replies: 5
Views: 6592

Re: BayesianSearch problem

I forgot to ask about JVM error stack - it could be helpful.

Also, did you matched BKK with DataSet?

Code: Select all

bkk.matchData(data);
(code should be executed after bkk initialization)

Last thing - did forced and forbidden arcs aren't excluding each other?
by piotr [BayesFusion]
Mon May 07, 2018 8:24 am
Forum: SMILE
Topic: BayesianSearch problem
Replies: 5
Views: 6592

Re: BayesianSearch problem

Hello,

Could you show part of code causing that error?
by piotr [BayesFusion]
Tue Apr 03, 2018 2:15 pm
Forum: SMILE
Topic: pysmile - learning
Replies: 3
Views: 5595

Re: pysmile - learning

I'm assuming, that your Dataset isn't corresponding with Network.
Net_tut_5.xdsl has states named State0/State1 instead of t/f from Dataset.