18 lines
645 B
Python
18 lines
645 B
Python
|
# 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}")
|