Skip to content

Commit 1846ea9

Browse files
committed
documentation
1 parent bae59cd commit 1846ea9

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

_doc/examples/plot_digitize.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
repeat = number = 100
6161
else:
6262
repeat = number = 10
63+
6364
for n_bins in [1, 10, 100]:
6465
bins = (numpy.arange(n_bins) / n_bins).astype(numpy.float32)
6566

@@ -85,7 +86,8 @@
8586

8687
with warnings.catch_warnings():
8788
warnings.simplefilter("ignore", category=FutureWarning)
88-
onx = to_onnx(tree, x.reshape((-1, 1)))
89+
onx = to_onnx(tree, x.reshape((-1, 1)),
90+
target_opset=15)
8991

9092
sess = InferenceSession(onx.SerializeToString())
9193

_doc/sphinxdoc/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
'MLPClassifier': 'http://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html',
8080
'MLPRegressor': 'http://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPRegressor.html',
8181
'nogil': 'https://cython.readthedocs.io/en/latest/src/userguide/external_C_code.html#releasing-the-gil',
82+
'onnxruntime': 'https://github.com/microsoft/onnxruntime',
8283
'pandas': ('http://pandas.pydata.org/pandas-docs/stable/',
8384
('http://pandas.pydata.org/pandas-docs/stable/generated/pandas.{0}.html', 1),
8485
('http://pandas.pydata.org/pandas-docs/stable/generated/pandas.{0}.{1}.html', 2)),

_doc/sphinxdoc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Short example:
8484

8585
.. runpython::
8686
:showcode:
87+
:warningout: FutureWarning
8788

8889
from sklearn.datasets import load_boston
8990
from sklearn.linear_model import LinearRegression

0 commit comments

Comments
 (0)