Skip to content

Commit ff1a8e3

Browse files
committed
status
1 parent 56a55d4 commit ff1a8e3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_doc/examples/plot_benchmark_rf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
import numpy
2323
import pandas
2424
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
2725
from onnxruntime import InferenceSession, SessionOptions
2826
from psutil import cpu_count
2927
from sphinx_runpython.runpython import run_cmd
@@ -33,9 +31,14 @@
3331
from sklearn.ensemble import RandomForestRegressor
3432
from tqdm import tqdm
3533
from xgboost import XGBRegressor
34+
from onnxmltools.convert.xgboost.operator_converters.XGBoost import convert_xgboost
3635

3736

3837
def skl2onnx_convert_lightgbm(scope, operator, container):
38+
from onnxmltools.convert.lightgbm.operator_converters.LightGbm import (
39+
convert_lightgbm,
40+
)
41+
3942
options = scope.get_options(operator.raw_operator)
4043
if "split" in options:
4144
operator.split = options["split"]

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy