verbosity

'verbose' argument in scikit-learn

'verbose' argument in scikit-learn Question: Many scikit-learn functions have a verbose argument that, according to their documentation, "[c]ontrols the verbosity: the higher, the more messages" (e.g., GridSearchCV). Unfortunately, no guidance is provided on which integers are allowed (e.g., can a user set verbosity to 100?) and what level of verbosity corresponds to which integers. I …

Total answers: 3

How do I disable log messages from the Requests library?

How do I disable log messages from the Requests library? Question: By default, the Requests python library writes log messages to the console, along the lines of: Starting new HTTP connection (1): example.com http://example.com:80 “GET / HTTP/1.1” 200 606 I’m usually not interested in these messages, and would like to disable them. What would be …

Total answers: 13

What numbers can you pass as verbosity in running Python Unit Test Suites?

What numbers can you pass as verbosity in running Python Unit Test Suites? Question: The Python unittest framework has a concept of verbosity that I can’t seem to find defined anywhere. For instance, I’m running test cases like this (like in the documentation): suite = unittest.TestLoader().loadTestsFromTestCase(MyAwesomeTest) unittest.TextTestRunner(verbosity=2).run(suite) The only number I’ve ever seen passed as …

Total answers: 1