Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ray / purelib / ray / tune / sklearn.py
Size: Mime:
import sys
import logging

logger = logging.getLogger(__name__)

TuneSearchCV = None
TuneGridSearchCV = None

try:
    from tune_sklearn import TuneSearchCV, TuneGridSearchCV
except ImportError as exc:
    # Changed in 1.5.0 -- Raises an exception instead of returning None.
    tb = sys.exc_info()[2]
    msg = (
        "Tune's Scikit-Learn bindings (tune-sklearn) is not installed. "
        "Please run `pip install tune-sklearn`."
    )
    raise type(exc)().with_traceback(tb) from None
__all__ = ["TuneSearchCV", "TuneGridSearchCV"]