-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with MarabouNetwork.loadQuery() #193
Comments
Hello, Thank you for your help! Right now loadQuery appears to return a "MarabouCore.InputQuery": how can I use it alongside a Thank you again! |
The old loadQuery would try to load the query and solve it, so the function name was misleading. Now, loadQuery returns a MarabouCore.InputQuery object, which can be solved by calling Marabou.solve_query. So now if you have a serialized inputQuery file, you can load and solve it with
Are you checking an nnet file, or a serialized inputQuery file? |
Hi, Actually I need to check the union of both, i.e., I have a network loaded using .nnet file and then I have a .txt file with the properties of interest encoded following the Marabou specifications. I am not sure how I can check the network against the property as in the command line example:
Thank you for your time! |
The property file you've written is different than a serialized inputQuery file. The save/load query functions contain all of the equations, constraints, and upper/lower bounds for all variables in a format that's not made to be easily readable. The serialized inputQuery files can be useful for debugging issues but are not meant to be written by hand. To use the nnet file and property file, the easiest way is to use the compiled C++ program (./build/Marabou) instead of using the python interface by calling (from the Marabou directory)
If you want to use the python interface, you would do something like
There isn't support yet for parsing property files in python, but you can still specify the same constraints in python using the above method. After the constraints are set up, you can solve the query with |
Ok, thank you for your reply! |
Hello,
I have tried to use MarabouNetwork.loadQuery() in order to load my
verification query but it gives me the following error:
Do you have any suggestions?
Thank you!
The text was updated successfully, but these errors were encountered: