You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forgive me if this has been discussed already, but why does sklearn.cross_validation._fit_and_score use a verbosity parameter and the print function, rather than using python's logging module? As someone who is building a library that uses sklearn, it means that I have to expose that verbosity parameter in my code, rather than letting the user set the logging level (or even hide the logging from that module).
For instance in lines 1434-1440 of sklearn/cross_validation.py
if verbose > 1:
if parameters is None:
msg = "no parameters to be set"
else:
msg = '%s' % (', '.join('%s=%s' % (k, v)
for k, v in parameters.items()))
print("[CV] %s %s" % (msg, (64 - len(msg)) * '.'))
The text was updated successfully, but these errors were encountered:
Forgive me if this has been discussed already, but why does
sklearn.cross_validation._fit_and_score
use averbosity
parameter and theprint
function, rather than using python'slogging
module? As someone who is building a library that uses sklearn, it means that I have to expose thatverbosity
parameter in my code, rather than letting the user set the logging level (or even hide the logging from that module).For instance in lines 1434-1440 of sklearn/cross_validation.py
The text was updated successfully, but these errors were encountered: