Search found 61 matches

by piotr [BayesFusion]
Tue Dec 01, 2020 10:39 am
Forum: SMILE
Topic: import pysmile error in Lunix system
Replies: 5
Views: 5108

Re: import pysmile error in Lunix system

Pip installs PySMILE from local cache. You have to uninstall PySMILE again (pip uninstall pysmile) and install with command: "pip install --no-cache-dir --index-url https://support.bayesfusion.com/pysmile-A/ pysmile"
by piotr [BayesFusion]
Fri Nov 27, 2020 2:13 pm
Forum: SMILE
Topic: import pysmile error in Lunix system
Replies: 5
Views: 5108

Re: import pysmile error in Lunix system

It seems you installed Pysmile package from official pip repository - it is package unrelated with our PySMILE. First - you have to uninstall this package with command: pip uninstall pysmile Next - remove pysmile.so file from your directory and install from our index by typing: pip install --index-u...
by piotr [BayesFusion]
Mon Nov 23, 2020 12:42 pm
Forum: SMILE
Topic: import pysmile error in Lunix system
Replies: 5
Views: 5108

Re: import pysmile error in Lunix system

It is probably a mismatch between the PySMILE and Python version installed. Remove pysmile.so and pysmile.pyd from directory you are trying to run program, then uninstall locally cached PySMILE package by typing: python -m pip uninstall pysmile in your terminal. Next, download recent version of PySM...
by piotr [BayesFusion]
Mon Jul 20, 2020 12:26 pm
Forum: SMILE
Topic: I can not import pysmile in my mac.
Replies: 7
Views: 7750

Re: I can not import pysmile in my mac.

Ad 1: There could be mismatch between DataSet and Network. If your network contains deterministic nodes and dataset contains informations conflicting with network EM Algorithm will not work. You can attach DataSet and XDSL to next message - this will allow us to check what is wrong. Ad 2: There is a...
by piotr [BayesFusion]
Mon Jul 20, 2020 9:57 am
Forum: SMILE
Topic: Memory Error when make inference for my datasets & type error when make inference and simulation procedure
Replies: 1
Views: 2945

Re: Memory Error when make inference for my datasets & type error when make inference and simulation procedure

a=net.get_node_value(net.get_node_id(h),i) get_node_value method call is invalid - it takes only one argument (node ID or handle). I am not sure if this loop is necessary while i<=len(v): a=net.get_node_value(net.get_node_id(h),i) res.append(a) i=i+1 Because you already have node value in v variabl...
by piotr [BayesFusion]
Fri Jul 17, 2020 10:45 am
Forum: SMILE
Topic: I can not import pysmile in my mac.
Replies: 7
Views: 7750

Re: I can not import pysmile in my mac.

I assume you managed to create a network in GeNIe.

Do I understand correctly that you want to connect all nodes from one layer with all nodes of another layer including time steps?
by piotr [BayesFusion]
Thu Jul 02, 2020 5:53 pm
Forum: SMILE
Topic: I can not import pysmile in my mac.
Replies: 7
Views: 7750

Re: I can not import pysmile in my mac.

Package installed by pip is not BayesFusion's PySMILE. To use PySMILE, you need to uninstall pysmile installed by pip. pip uninstall pysmile Download PySMILE from our website - https://download.bayesfusion.com/ and uncompress archive in your project directory. Note that PySMILE works with official P...
by piotr [BayesFusion]
Thu Jun 04, 2020 9:03 am
Forum: SMILE
Topic: Enable diagnosis for nodes using pysmile wrapper
Replies: 5
Views: 7024

Re: Enable diagnosis for nodes using pysmile wrapper

First argument of set_node_diag_type method is node handle or node ID. Second argument represents diagnostic type. By default, all nodes are Auxiliary. You can change diagnostic type by calling e.g. net.set_node_diag_type("Fault Node ID", pysmile.NodeDiagType.FAULT) net.set_node_diag_type(...
by piotr [BayesFusion]
Tue Apr 14, 2020 4:16 pm
Forum: SMILE
Topic: node backgorund color and node discretization
Replies: 2
Views: 4068

Re: node backgorund color and node discretization

Ad 1 Node background color could be setted this way: net.set_node_bg_color(handle, 0x0000ff) net.set_node_bg_color(handle, 0x123456) Hexadecimal numbers seem to be the easiest way when it comes to color reading, however, SMILE was initially written in the Windows environment, so color format is reve...
by piotr [BayesFusion]
Fri Nov 29, 2019 12:59 pm
Forum: SMILE
Topic: Parameter learner not optimising a DBN's temporal CPT's in PySMILE
Replies: 8
Views: 10987

Re: Parameter learner not optimising a DBN's temporal CPT's in PySMILE

Network matching in SMILE wrappers works with BN's only. However, this functionality would be added in 1.4.2 release (first week of December), so if you are not in hurry, we advise you to wait a few days. In otherwise, you have to match network manually.
by piotr [BayesFusion]
Tue Nov 26, 2019 10:35 am
Forum: SMILE
Topic: Reading temporal arcs and small bug in SMILE wrapper documentation
Replies: 4
Views: 6997

Re: Reading temporal arcs and small bug in SMILE wrapper documentation

Unfortunately, there is no function that returns all temporal arcs in Network, but you can narrow down the search area and iterate nodes placed on Temporal Plate by net.get_temporal_children(node) - it should be slightly faster than net.get_temporal_parents(node, order).
by piotr [BayesFusion]
Mon Nov 25, 2019 11:05 am
Forum: SMILE
Topic: Reading temporal arcs and small bug in SMILE wrapper documentation
Replies: 4
Views: 6997

Re: Reading temporal arcs and small bug in SMILE wrapper documentation

TemporalInfo is a class that contains three fields - handle, id and order. Fields could be accesed by: parentArr = net.get_temporal_parents(node, order) parentArr[0].handle parentArr[0].id parentArr[0].order (with assumption, that temporal arcs exists, so parentArr is not empty) Exception is raised ...
by piotr [BayesFusion]
Mon May 27, 2019 1:07 pm
Forum: SMILE
Topic: S-function in Simulink
Replies: 5
Views: 7538

Re: S-function in Simulink

There is slightly-improved Smile-Matlab wrapper: matsmile.cpp It has minimal functionality to support Discrete Bayesian Networks. Hello program that uses wrapper looks like this: net = matsmile('newNetwork'); matsmile('readFile', net, 'VentureBN.xdsl'); matsmile('setEvidence', net, 'Forecast', 'Mode...
by piotr [BayesFusion]
Wed May 15, 2019 7:00 pm
Forum: SMILE
Topic: S-function in Simulink
Replies: 5
Views: 7538

Re: S-function in Simulink

matsmile.cpp I added node and outcome validation, so the debugging process should be easier now. Getting node value depends on its type, but most common case (CPT node) is described here https://support.bayesfusion.com/docs/SMILE/using_node_value.html . If your network contains Equation nodes, you ...
by piotr [BayesFusion]
Tue May 07, 2019 4:51 pm
Forum: SMILE
Topic: S-function in Simulink
Replies: 5
Views: 7538

Re: S-function in Simulink

matsmile.cpp At first, you have to make sure, that C++ compiler chosen by Matlab is compatible with Smile binaries. mex -setup cpp If there is compatibility, change directory to the one where the Smile was unpacked. cd('full/path/to/smile/directory'); The easiest way I found was to implement new Me...