Scikit.Classification.ONNX/Python/ScikitLearnClassifiers.py

18 lines
645 B
Python
Raw Permalink Normal View History

2025-05-30 16:23:21 +02:00
# ScikitLearnClassifiers.py
# The script lists all the classification algorithms available in scikit-learn
# Copyright 2023, MetaQuotes Ltd.
# https://mql5.com
# print Python version
from platform import python_version
print("The Python version is ", python_version())
# print scikit-learn version
import sklearn
print('The scikit-learn version is {}.'.format(sklearn.__version__))
# print scikit-learn classifiers
from sklearn.utils import all_estimators
classifiers = all_estimators(type_filter='classifier')
for index, (name, ClassifierClass) in enumerate(classifiers, start=1):
print(f"Classifier {index}: {name}")