Parameters: | decision_tree : decision tree regressor or classifier The decision tree to be exported to GraphViz. out_file : file object or string, optional (default=None) Handle or name of the output file. If Changed in version 0.20: Default of out_file changed from “tree.dot” to None. max_depth : int, optional (default=None) The maximum depth of the representation. If None, the tree is fully generated. feature_names : list of strings, optional (default=None) Names of each of the features. class_names : list of strings, bool or None, optional (default=None) Names of each of the target classes in ascending numerical order. Only relevant for classification and not supported for multi-output. If |
---|
【Sklearn】tree.export_graphviz 可视化函数
最新推荐文章于 2024-05-17 02:08:42 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)