Closed SuryaB1 closed 3 months ago
Hi @SuryaB1 , if everything runs normally, then those can very likely be overdue statistics printing of several previous queries you run. To print things in real time (instead of backloading them to the end) you could add -u
to your python command, e,g. python -u script.py
To turn off those outputs during the solving, you could set the verbosity flag when creating a Marabou option. https://github.com/NeuralNetworkVerification/Marabou/blob/8854d50af873364ef0c0ae61bc1d7144f9e9c519/maraboupy/examples/2_ONNXExample.py#L20-L58
Thank you for the quick response. Using options = Marabou.createOptions(verbosity = 0)
turned off all statistics updates.
System Info: 2019 Intel Core i9 MacBook Pro macOS Ventura 13.4 (22F66) Python 3.8.16
Hi,
I'm running a program that performs thousands of queries on Marabou via the Python API, and my program outputs some logs right before each query occurs. Starting after about 20 seconds of program execution (with output consisting of my program's logs and Marabou statistics logs), I have been only seeing Marabou's statistics logs for more than an hour now, and I believe either one of two things is happening.
My first guess as to what is happening is that all of the program's queries have been completed and now Marabou is outputting overdue statistics updates. I suspect this because I do not see my program's logs anymore, and my program's logs for my last query were printed in the middle of one of Marabou's statistics updates. If this guess is true, I would like to turn off these statistics updates. I attempted to do so by setting the verbose parameter of MaraboutNetwork.solve() to False, which did not work.
Q1: How can I turn off these statistics updates, if this interpretation is correct?
My second guess was that all of these statistics updates are corresponding to Marabou's processing of just my last query, meaning I would need to go look into what is wrong with my last query before all of these statistic updates.
Q2: What interpretation regarding these statistic updates is correct?
Thank you!
Below is one such statistics update out of the many that were printed: