Scikit.Regression.ONNX/Python/ScikitRegressors.py

22 lines
705 B
Python
Raw Permalink Normal View History

2025-05-30 16:23:24 +02:00
# Copyright 2023, MetaQuotes Ltd.
# https://www.mql5.com
# ScikitLearnRegressors.py
# The script lists all the regression algorithms available inb 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 regression models
from sklearn.utils import all_estimators
regressors = all_estimators(type_filter='regressor')
for index, (name, RegressorClass) in enumerate(regressors, start=1):
print(f"Regressor {index}: {name}")