Skip to content
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

Logging enhancements #701

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions supervised/automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
from supervised.base_automl import BaseAutoML
from supervised.utils.config import LOG_LEVEL

logging.basicConfig(
format="%(asctime)s %(name)s %(levelname)s %(message)s", level=logging.ERROR
)
logger = logging.getLogger(__name__)
logger.setLevel(LOG_LEVEL)

Expand Down
3 changes: 1 addition & 2 deletions supervised/base_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
REPORT_FONT = "Arial"

logger = logging.getLogger(__name__)
logger.setLevel(LOG_LEVEL)


class BaseAutoML(BaseEstimator, ABC):
Expand Down Expand Up @@ -405,7 +404,7 @@ def train_model(self, params):
def verbose_print(self, msg):
if self._verbose > 0:
# self._progress_bar.write(msg)
print(msg)
logging.info(msg)

def ensemble_step(self, is_stacked=False):
if self._train_ensemble and len(self._models) > 1:
Expand Down
3 changes: 0 additions & 3 deletions supervised/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

from supervised.utils.config import LOG_LEVEL

logging.basicConfig(
format="%(asctime)s %(name)s %(levelname)s %(message)s", level=logging.ERROR
)
logger = logging.getLogger(__name__)
logger.setLevel(LOG_LEVEL)

Expand Down