Commit 268c6810 authored by leswing's avatar leswing
Browse files

Lazy Import

parent 8a35de2e
Loading
Loading
Loading
Loading
+24 −24
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
+9 −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
 No newline at end of file