"src/vscode:/vscode.git/clone" did not exist on "d3e88ef5e4b50e6b93f6012573206eb419a4e917"
Commit b54f60f3 authored by Tsukasa OMOTO's avatar Tsukasa OMOTO Committed by Guolin Ke
Browse files

docs: fix build error by mocking LGBMDeprecated (#494)

If scikit-learn isn't installed (and Read the Docs doesn't have it),
LGBMDeprecated aren't created and can't be imported.
parent c9fb514a
......@@ -29,7 +29,11 @@ from recommonmark.transform import AutoStructify
# -- mock out modules
from unittest.mock import Mock
MOCK_MODULES = ['numpy', 'scipy', 'scipy.sparse', 'sklearn', 'matplotlib', 'pandas', 'graphviz']
MOCK_MODULES = [
'numpy', 'scipy', 'scipy.sparse',
'sklearn', 'matplotlib', 'pandas', 'graphviz',
'lightgbm.compat.LGBMDeprecated'
]
for mod_name in MOCK_MODULES:
sys.modules[mod_name] = Mock()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment