MLNB
所属分类:matlab编程
开发工具:matlab
文件大小:1313KB
下载次数:39
上传日期:2013-11-20 06:28:53
上 传 者:
pswemz
说明: 朴素贝叶斯分类器,朴素贝叶斯分类器朴素贝叶斯分类器
(Naï ve Bayes Classification,Naï ve Bayes Classification,Naï ve Bayes Classification)
文件列表:
MLNB\Average_precision.m (1910, 2005-04-21)
MLNB\coverage.m (1334, 2005-01-23)
MLNB\Hamming_loss.m (539, 2005-01-23)
MLNB\MLNB.m (5062, 2011-04-09)
MLNB\MLNB_Basic_test.m (3391, 2009-06-11)
MLNB\MLNB_Basic_train.m (2261, 2009-06-11)
MLNB\MLNB_fitfunc.m (2108, 2009-06-11)
MLNB\One_error.m (1727, 2005-05-31)
MLNB\Ranking_loss.m (1681, 2005-04-21)
MLNB\sample data.mat (1337365, 2011-04-08)
MLNB (0, 2011-04-09)
%This is an examplar file on how the MLNB program could be used (The main function is "MLNB.m")
%
%Type 'help MLNB' under Matlab prompt for more detailed information
% Loading the file containing the necessary inputs for calling the MLNB function
load('sample data.mat');
%Set the number of remained features after PCA
dim=size(train_data,2);
ratio=0.3;
pca_remained=ceil(ratio*dim); % Set the number of reamined features after PCA to 30% of the original dimensionality, as suggested in the literature
% Calling the main function MLNB
[HammingLoss,RankingLoss,OneError,Coverage,Average_Precision,Outputs,Pre_Labels]=MLNB(train_data,train_target,test_data,test_target,pca_remained);
近期下载者:
相关文件:
收藏者: