Skip to content

Commit

Permalink
Support logger_formatter without automl dependencies (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkall authored Sep 21, 2024
1 parent 8e171bc commit 49ba962
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions flaml/automl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from flaml.automl.automl import AutoML, size
from flaml.automl.logger import logger_formatter
from flaml.automl.state import AutoMLState, SearchState

__all__ = ["AutoML", "AutoMLState", "SearchState", "logger_formatter", "size"]
try:
from flaml.automl.automl import AutoML, size
from flaml.automl.state import AutoMLState, SearchState

__all__ = ["AutoML", "AutoMLState", "SearchState", "logger_formatter", "size"]
except ImportError:
__all__ = ["logger_formatter"]

0 comments on commit 49ba962

Please sign in to comment.