compact
クラス: ClassificationDiscriminant
コンパクトな判別分析分類器
構文
cobj = compact(obj)
入力引数
|
|
出力引数
|
コンパクト分類器。 |
例
フィッシャーのアヤメのデータの判別分析分類器とコンパクトなバージョンの分類器のサイズを比較します。
load fisheriris fullobj = fitcdiscr(meas,species); cobj = compact(fullobj); b = whos('fullobj'); % b.bytes = size of fullobj c = whos('cobj'); % c.bytes = size of cobj [b.bytes c.bytes] % shows cobj uses 60% of the memory ans = 18578 11498