forked from automated-trading/Scikit.Regression.ONNX
22 lines
No EOL
705 B
Python
22 lines
No EOL
705 B
Python
# 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}") |