I have generated CPTs using an external program because the build-in table generators take a very long time. I would like to import to CPTs into Hugin.
If the set of parents includes interval nodes, then the Table Generator will - by default - generate 25 values for each interval for each parent. This means that the number of
samples generated can become very large. To reduce the number of
samples you should reduce the number
Samples/IntervalI have saved the files as .txt files however, when I attempt to import the files into Hugin, I receive the following error: "Unable to import table from file. The file contains 0 lines (should be 10) with number of values (big number)" I am certain the file is not empty and that it contains the correct number of values.
What version of HUGIN software are you using?
Is there any guidance available on the format the .txt files should take? I have tried to export a table and use the same format for the imported file, but with no success.
This is an example of CPT taken from the Asia network (Chest Clinic) for the node Dyspnoea:
---------- Dyspnoea? ----------
CPT
0.9,0.8,0.7,0.1
0.1,0.2,0.3,0.9
Alternatively, you could consider using an API to enter the values to the CPT. If you, for instance, are using Excel to generate the values, then you can use the ActiveX Server to write a simple macro to enter the numbers.
However, I suggest to reduce
Samples/Interval to increase the speed and use the Table Generator to compute the values.