Skip to content

Commit 94b25a3

Browse files
committed
documentation
1 parent 2107e8c commit 94b25a3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

onnx_array_api/plotting/text_plot.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -574,18 +574,16 @@ def onnx_simple_text_plot(
574574
# onnx_simple_text_plot
575575
import numpy
576576
from sklearn.cluster import KMeans
577-
from mlprodict.onnxrt import OnnxInference
578-
from mlprodict.onnx_conv import to_onnx
577+
from skl2onnx import to_onnx
578+
from onnx_array_api.plotting.dot_plot import to_dot
579579
580580
x = numpy.random.randn(10, 3)
581581
y = numpy.random.randn(10)
582582
model = KMeans(3)
583583
model.fit(x, y)
584584
model_onnx = to_onnx(model, x.astype(numpy.float32),
585585
target_opset=15)
586-
oinf = OnnxInference(model_onnx, inplace=False)
587-
588-
print("DOT-SECTION", oinf.to_dot())
586+
print("DOT-SECTION", to_dot(model_onnx))
589587
"""
590588
use_indentation = indent
591589
if att_display is None:
@@ -1060,7 +1058,6 @@ def onnx_text_plot_io(model, verbose=False, att_display=None):
10601058
from sklearn.cluster import KMeans
10611059
from skl2onnx import to_onnx
10621060
from onnx_array_api.plotting.text_plot import onnx_text_plot_io
1063-
from mlprodict.plotting.plotting import onnx_text_plot_io
10641061
10651062
x = numpy.random.randn(10, 3)
10661063
y = numpy.random.randn(10)

0 commit comments

Comments
 (0)