基于模式识别的乳腺癌分类决策树。

2022-05-28 15:37:01 浏览数 (1)

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

breast-cancer-wisconsin.m

代码语言:javascript复制
clear all;
close all;
clc;
 
 dataset = load('breast-cancer-wisconsin.data');
 train = dataset(:,1:10);
 class = dataset(:,11);
 
 classificationTree = fitctree(train,class)
 view(classificationTree)
 view(classificationTree,'mode','graph')
 
 regressionTree = fitrtree(train,class);  
 view(regressionTree) 
 view(regressionTree,'mode','graph')

0 人点赞