rSMILE acces to Node States

The engine.
Post Reply
delay
Posts: 2
Joined: Fri Mar 29, 2024 3:52 pm

rSMILE acces to Node States

Post by delay »

Hello,
I've created a network with GeNIe and now I'd like to explore it a little with R. I can't find the function in rSMILE that allows me to read the names of the different states of a node.

As an example, I have the following node:

Code: Select all

CarbonSequ
Good | 0.5
Bad | 0.5
I'd like to be able to retrieve the states: Good and Bad, so that I can associate them in a data frame with 0. and 0.5, which I retrieve using

Code: Select all

net$getNodeDefinition()
.
piotr [BayesFusion]
Site Admin
Posts: 61
Joined: Mon Nov 06, 2017 6:41 pm

Re: rSMILE acces to Node States

Post by piotr [BayesFusion] »

The methods you are looking for are:

Code: Select all

net$getOutcomeIds(nodeId)
net$getOutcomeId(nodeId, index)
How the definition and states are related is described in the SMILE and Wrappers documentation:
https://support.bayesfusion.com/docs/
delay
Posts: 2
Joined: Fri Mar 29, 2024 3:52 pm

Re: rSMILE acces to Node States

Post by delay »

<3 génial ! This is exactly what I was looking for
Post Reply