Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff1a8e3

Browse files
committed
status
1 parent56a55d4 commitff1a8e3

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
importnumpy
2323
importpandas
2424
fromlightgbmimportLGBMRegressor
25-
fromonnxmltools.convert.lightgbm.operator_converters.LightGbmimportconvert_lightgbm
26-
fromonnxmltools.convert.xgboost.operator_converters.XGBoostimportconvert_xgboost
2725
fromonnxruntimeimportInferenceSession,SessionOptions
2826
frompsutilimportcpu_count
2927
fromsphinx_runpython.runpythonimportrun_cmd
@@ -33,9 +31,14 @@
3331
fromsklearn.ensembleimportRandomForestRegressor
3432
fromtqdmimporttqdm
3533
fromxgboostimportXGBRegressor
34+
fromonnxmltools.convert.xgboost.operator_converters.XGBoostimportconvert_xgboost
3635

3736

3837
defskl2onnx_convert_lightgbm(scope,operator,container):
38+
fromonnxmltools.convert.lightgbm.operator_converters.LightGbmimport (
39+
convert_lightgbm,
40+
)
41+
3942
options=scope.get_options(operator.raw_operator)
4043
if"split"inoptions:
4144
operator.split=options["split"]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp