smote_variants
smote_variants copied to clipboard
How to supress INFO verbose in smote_variants
How to supress INFO verbose in smote_variants?? I am using smote_variants in Jupyter notebook/lab environment and it shows lots of verbage
2020-07-08 16:28:12,711:INFO:SMOTE_ENN: Running sampling via ('SMOTE_ENN', "{'proportion': 1.0, 'n_neighbors': 5, 'n_jobs': 1, 'random_state': None}")
2020-07-08 16:28:12,711:INFO:SMOTE: Running sampling via ('SMOTE', "{'proportion': 1.0, 'n_neighbors': 5, 'n_jobs': 1, 'random_state': <module 'numpy.random' from '/Users/aa/opt/anaconda3/lib/python3.7/site-packages/numpy/random/__init__.py'>}")
2020-07-08 16:28:12,720:INFO:EditedNearestNeighbors: Running noise removal via EditedNearestNeighbors
2020-07-08 16:28:13,544:INFO:SMOTE_ENN: Running sampling via ('SMOTE_ENN', "{'proportion': 1.0, 'n_neighbors': 5, 'n_jobs': 1, 'random_state': None}")
2020-07-08 16:28:13,545:INFO:SMOTE: Running sampling via ('SMOTE', "{'proportion': 1.0, 'n_neighbors': 5, 'n_jobs': 1, 'random_state': <module 'numpy.random' from '/Users/aa/opt/anaconda3/lib/python3.7/site-packages/numpy/random/__init__.py'>}")
...
...
...
Getting and setting the smote_variants logging level suppresses it
import logging
import smote_variants as sv
logging.getLogger(sv.__name__).setLevel(logging.CRITICAL)
@ashleyabraham , great job! You were quicker than I could response!
This is not working for me, and the INFO is quite annoying for longer projects
I look into this, thanks for the feedback!