# SPDX-License-Identifier: Apache-2.0"""Main entry point to the converter from the *scikit-learn* to *onnx*."""__version__="1.18.0"__author__="Microsoft"__producer__="skl2onnx"__producer_version__=__version____domain__="ai.onnx"__model_version__=0__max_supported_opset__=21# Converters are tested up to this version.from.convertimportconvert_sklearn,to_onnx,wrap_as_onnx_mixin# noqafrom._supported_operatorsimportupdate_registered_converter,get_model_alias# noqafrom._parseimportupdate_registered_parser# noqafrom.protoimportget_latest_tested_opset_version# noqa
[docs]defsupported_converters(from_sklearn=False):""" Returns the list of supported converters. To find the converter associated to a specific model, the library gets the name of the model class, adds ``'Sklearn'`` as a prefix and retrieves the associated converter if available. :param from_sklearn: every supported model is mapped to converter by a name prefixed with ``'Sklearn'``, the prefix is removed if this parameter is False but the function only returns converters whose name is prefixed by ``'Sklearn'`` :return: list of supported models as string """from.common._registrationimport_converter_pool# noqa# The two following lines populates the list of supported converters.from.importshape_calculators# noqafrom.importoperator_converters# noqanames=sorted(_converter_pool.keys())iffrom_sklearn:return[_[7:]for_innamesif_.startswith("Sklearn")]returnlist(names)