sklearn-onnx
sklearn-onnx copied to clipboard
Voting Classifier with flatten_transform==True
I am trying to export a voting classifier created by this training project.
It appears this is unsupported.
Traceback (most recent call last):
File "./export_audioclassify.py", line 36, in <module>
onx = convert_sklearn(model, initial_types=initial_type)
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/convert.py", line 184, in convert_sklearn
onnx_model = convert_topology(
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/common/_topology.py", line 1421, in convert_topology
topology.convert_operators(container=container, verbose=verbose)
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/common/_topology.py", line 1256, in convert_operators
self.call_converter(operator, container, verbose=verbose)
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/common/_topology.py", line 1062, in call_converter
conv(self.scopes[0], operator, container)
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/common/_registration.py", line 26, in __call__
return self._fct(*args)
File "/home/ericr/.local/lib/python3.8/site-packages/skl2onnx/operator_converters/voting_classifier.py", line 118, in convert_voting_classifier
raise NotImplementedError(
NotImplementedError: flatten_transform==True is not implemented yet. You may raise an issue at https://github.com/onnx/sklearn-onnx/issues.
did you find a workaround for this issue ?