8000 Add command line to replace constants in a model by xadupre · Pull Request #87 · sdpython/onnx-array-api · GitHub
[go: up one dir, main page]

Skip to content

Add command line to replace constants in a model #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 5, 2024
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
8639
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
0