view
View regression tree
Syntax
查看(树)
查看(树,名称,值)
Input Arguments
|
Name-Value Arguments
将可选的参数对Name1=Value1,...,NameN=ValueN
, whereName
is the argument name and价值
是相应的值。名称值参数必须在其他参数之后出现,但是对的顺序并不重要。
Before R2021a, use commas to separate each name and value, and encloseName
in quotes.
|
Display of Default: |
例子
提示
查看树t
from an ensemble of trees, enter one of these lines of code
view(Ens.Trained{t})view(Bag.Trees{t})
Ens
是一个完整的合奏fitrensemble
或由袖珍的
.包
is a full bag of trees returned byTreeBagger
或者a compact bag of trees returned by袖珍的
.
To save树
in the Command Window, get a figure handle by using thefindall
和setdiff
功能,然后保存树
使用该功能另存为
.
之前= findall(groot,'Type','数字');% Find all figuresview(Mdl,“模式”,'graph')之后= findall(groot,'Type','数字');h = setDiff(在之前,之前);% Get the figure handle of the tree viewer另存为(h,'a.png')