File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 22
22
import numpy
23
23
import pandas
24
24
from lightgbm import LGBMRegressor
25
- from onnxmltools .convert .lightgbm .operator_converters .LightGbm import convert_lightgbm
26
- from onnxmltools .convert .xgboost .operator_converters .XGBoost import convert_xgboost
27
25
from onnxruntime import InferenceSession , SessionOptions
28
26
from psutil import cpu_count
29
27
from sphinx_runpython .runpython import run_cmd
33
31
from sklearn .ensemble import RandomForestRegressor
34
32
from tqdm import tqdm
35
33
from xgboost import XGBRegressor
34
+ from onnxmltools .convert .xgboost .operator_converters .XGBoost import convert_xgboost
36
35
37
36
38
37
def skl2onnx_convert_lightgbm (scope , operator , container ):
38
+ from onnxmltools .convert .lightgbm .operator_converters .LightGbm import (
39
+ convert_lightgbm ,
40
+ )
41
+
39
42
options = scope .get_options (operator .raw_operator )
40
43
if "split" in options :
41
44
operator .split = options ["split" ]
You can’t perform that action at this time.
0 commit comments