Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
example
  • Loading branch information
xadupre committed Apr 8, 2024
commit 77863a657535a905ebfb6691ca03e6e191623601
7 changes: 5 additions & 2 deletions _doc/examples/plot_benchmark_rf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
import numpy
import pandas
from lightgbm import LGBMRegressor
from onnxmltools.convert.lightgbm.operator_converters.LightGbm import convert_lightgbm
from onnxmltools.convert.xgboost.operator_converters.XGBoost import convert_xgboost
from onnxruntime import InferenceSession, SessionOptions
from psutil import cpu_count
from sphinx_runpython.runpython import run_cmd
Expand All @@ -33,9 +31,14 @@
from sklearn.ensemble import RandomForestRegressor
from tqdm import tqdm
from xgboost import XGBRegressor
from onnxmltools.convert.xgboost.operator_converters.XGBoost import convert_xgboost


def skl2onnx_convert_lightgbm(scope, operator, container):
from onnxmltools.convert.lightgbm.operator_converters.LightGbm import (
convert_lightgbm,
)

options = scope.get_options(operator.raw_operator)
if "split" in options:
operator.split = options["split"]
Expand Down