DecisionTreeClassifier(一):参数说明

DecisionTreeClassifier又称决策树,在sklearn库中该分类器有如下参数:

from sklearn.tree import DecisionTreeClassifier;

model = DecisionTreeClassifier(
    criterion='gini', 
    splitter='best', 
    max_depth=None, 
    min_samples_split=2,
    min_samples_leaf =1, 
    min_weight_fraction_leaf=0.0, 
    max_features=None, 
    random_state=None, 
    max_leaf_nodes=None,
    class_weight=None, 
    presort=False);

 

你可能感兴趣的:(分类器,机器学习,scikit-learn)