Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AxeldeRomblay committed Jul 10, 2017
1 parent 3a46185 commit 6626388
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,7 @@

import sys
import os
from mock import Mock as MagicMock

class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return MagicMock()

MOCK_MODULES = ['numpy',
'pandas',
'sklearn',
'keras',
'lightgbm',
'theano',
'xgboost',
'ipyparallel',
'keras.layers.core',
'keras.layers.embeddings',
'keras.layers',
'keras.models',
'sklearn.ensemble',
'sklearn.metrics',
'sklearn.linear_model',
'sklearn.model_selection',
'sklearn.tree',
'sklearn.pipeline',
'sklearn.preprocessing']

sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)


# If extensions (or modules to document with autodoc) are in another
# directory, add these directories to sys.path here. If the directory is
Expand Down

0 comments on commit 6626388

Please sign in to comment.