Commit 5ed5afae authored by Bharath Ramsundar's avatar Bharath Ramsundar Committed by GitHub
Browse files

Merge pull request #506 from lilleswing/lazy-import

Lazy Import xgboost
parents 8a35de2e 904b278a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
Scikit-learn wrapper interface of xgboost
"""

import xgboost as xgb
from deepchem.utils.dependencies import xgboost as xgb
import numpy as np
import os
from deepchem.models import Model
+11 −0
Original line number Diff line number Diff line
"""
This file is for lazily importing optional dependencies
"""
try:
  import xgboost as xgboost
except:
  print("Warning: No XGBOOST installed on your system")
  print(
      "Attempting to run models with XGBOOST dependencies will throw runtime errors"
  )
  xgboost = None