Hello:
I am using SmileX with Excel. How could I use "Clustering" algorithm with SmileX?
SmileX manual says we can use Lauritzen, Henrion, Pearl, LSampling, SelfImportance, HeuristicImportance and Backsampling. All of them for BN. But not Clusterin.
Thanks very much
SmileX and Clustering algorithm
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Re: SmileX and Clustering algorithm
Lauritzen is clustering.jga wrote:I am using SmileX with Excel. How could I use "Clustering" algorithm with SmileX?
Thanks, very much.
Then How can I explain the difference betwen the results with SmileX and Genie. I could compare the results obtained with Genie and SmileX with the same BN in two cases. With the first BN (very simple, with only 4 nodes) the results were very similar (insignificant difference), but with another BN with 30 nodes aprox. there are differences:
With GENIE: 0,764 - 0,253 - 0,979
With SmileX: 0,686 - 0,287 - 0,945
Is that normal?
Thaks
Then How can I explain the difference betwen the results with SmileX and Genie. I could compare the results obtained with Genie and SmileX with the same BN in two cases. With the first BN (very simple, with only 4 nodes) the results were very similar (insignificant difference), but with another BN with 30 nodes aprox. there are differences:
With GENIE: 0,764 - 0,253 - 0,979
With SmileX: 0,686 - 0,287 - 0,945
Is that normal?
Thaks
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
-
- Site Admin
- Posts: 1457
- Joined: Mon Nov 26, 2007 5:51 pm
Can't reproduce that with the following script (run from the command line with 'cscript test.vbs'):jga wrote:The first case. And the probabilities correspond to T1, T2 and T3.
Code: Select all
dim net
set net = CreateObject("SmileX.SmileXCtrl.1")
net.ReadFile "rb.xdsl"
net.SetEvidence "A", "Hombre"
net.SetEvidence "B", "E15_34"
net.SetEvidence "C", "Positivo"
net.SetEvidence "F", "Negativo"
net.SetEvidence "G", "Negativo"
net.SetEvidence "H", "Positivo"
net.SetEvidence "L", "Vida_cama_sillon"
net.SetEvidence "N", "Negativo"
net.SetEvidence "R", "Dificultas_Ronquidos"
net.SetEvidence "S", "Negativo"
net.SetEvidence "V", "Extension_en_respuesta_al_dolor"
net.SetEvidence "X", "Al_dolor"
dim res
res = net.UpdateBeliefs("Lauritzen")
Wscript.Echo "UpdateBeliefs status code:", res
dim b
b = net.GetBeliefs("T1")
Wscript.Echo "T1:", b(0), b(1)
b = net.GetBeliefs("T2")
Wscript.Echo "T2:", b(0), b(1)
b = net.GetBeliefs("T3")
Wscript.Echo "T3:", b(0), b(1)
Code: Select all
T1: 0.235561961436078 0.764438038563923
T2: 0.021294296604007 0.978705703395993
T3: 0.746880495503305 0.253119504496695