Problems loading models
Hi,
My name is Andreas, and I'm a researcher at DNV GL in Norway.
I found pyAgrum a few months ago, and I’m currently trying to use it in a project. Your library has a lot of nice advanced features, and I’m very happy with it, but I also have encountered some problems, and I was hoping that you might be able to help me:
Issue regarding loading of BNs:
- When I create a model that contains DiscretizedVariable and save it, I am only able to reload the model if I save it to .bifxml. (The problem seems to be that all the other file formats you support do not tolerate special chareters such as [,],; in variable labels, because when I manually alter the labels in the model text files it is possible to load back into pyAgrum).
- As mentioned above, I am able to load models stored in .bifxml format, however all variables then turn into LabelizedVariables. As a result, parts of my code that depends on the variable type does not work anymore.
Do you have any solution to this? Of course I could rewrite my code to only use LabelizedVariable, but it would be very convenient to have access to different variable types. I also thought I should notify you, in case you were not aware of this problem.
By the way, I’m running version 0.13.2.1 on Windows.
I hope to hear from you, and thank you for your help!
Best regards, Andreas Hafver