Code covered by the BSD License
-
ARTMAPgui(varargin)
MYGUI Brief description of GUI.
-
ART_Activate_Categories(input...
ART_Activate_Categories Activates the categories in an ART network.
-
ART_depleter_new(sampleNumber...
-
DEFARTMAP_Classify(artmap, te...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_Classify_Fast(artma...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_Classify_H(artmap, ...
% This is an implementation of Default ARTMAP,
-
DEFARTMAP_Complement_Code(dat...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_Create_Network(M, n...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_Learn(artmap, input...
% This is an implementation of Default ARTMAP,
-
DEFARTMAP_LearnTwinV10dynamic...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_LearnTwinV10dynamic...
% This is an implementation of an ARTMAP variant,
-
DEFARTMAP_biasedLearn(artmap,...
% This is an implementation of biased ARTMAP,
-
DEFARTMAP_choice_function(art...
% This is an implementation of an ARTMAP variant,
-
DEFART_Normalize(a)
OGI MODIFICATION
-
DEFART_Update_Weights(artmap,...
B.11 LEARNING
-
Default_ARTMAP(varargin)
% This is an implementation of an ARTMAP variant,
-
GRAPH_DATA(train_data,train_o...
-
[A,A_norm,avg_acc]=confMatrix...
% This is an implementation of biased ARTMAP,
-
[A,A_norm,avg_acc]=confMatrix...
% This is an implementation of an ARTMAP variant,
-
createDataStruct(in_mat,row_c...
% This is part of an implementation of the biased ARTMAP Matlab code package,
-
fuzzyARTMAPTester(dataStructT...
% This is an implementation of an ARTMAP variant,
-
fuzzyARTMAP_examplesWrapper(v...
imshow('figure_CIS.jpg')
-
out_labels=addClassError(inpu...
-
out_nothing=plotCodingNode(in...
check_cond=1;
-
plotInputPoint(input_point,fi...
check_cond=1;
-
DEFARTMAP_Classifier.m
-
PrepareData.m
-
drawRectsArtmap.m
-
fuzzyARTMAP_MovieGenreTester.m
-
fuzzyARTMAP_examples.m
-
fuzzyARTMAP_genreTester.m
-
Contact.html
-
Credits.html
-
Fuzzy ARTMAP Code: Usage dire...
-
License.html
-
View all files
from
Fuzzy ARTMAP
by Massimiliano Versace
This package contains an implementation of Fuzzy ARTMAP.
|
| DEFARTMAP_Classify_H(artmap, testdata)
|
function [classes, sigmaS, yMatrix]= DEFARTMAP_Classify_H(artmap, testdata)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is an implementation of Default ARTMAP,
% as described in CAS/CNS Technical Report TR-2003-008
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Programmed by Ogi Ogas, Modified By (Chaitanya Sai)
%%%%%%%%%%%%%%%%%%%%%%%%%
% The notation follows the article's notation,
% as does the headers for each step of the
% algorithm
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% DISTRIBUTED TESTING
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 02/21/05: fixed a bug where y was in column format instead of row format
% during IGCam rule
% 09/11/05: checks to make sure test data has same features as training
% data
[numFeatures, n] = size(testdata);
M_test = numFeatures/2;
if (artmap.M~=M_test)
error('The test data does not have the same number of features as the training data!')
end
% Set up the return variables.
classes = zeros(1, n);
% Classify and learn on each sample.
for sampleNumber = 1:n
% C.2: SELECT NEXT INPUT VECTOR A
A = testdata(:, sampleNumber);
artmap.rho = artmap.rho_bar;
% C.3: RESET THE CODE
y = zeros(artmap.C,1); % the code at F2. At each node j, activity reset to 0.
% C.4 CALCULATE SIGNALS TO COMMITTED CODING NODES
T = DEFARTMAP_choice_function(artmap,A);
% C.5: CALCULATE LAMBDA
Lambda=[]; Lambda_prime=[];
Lambda = find(T>artmap.alpha.*artmap.M);
Lambda_prime = find(T==artmap.M);
% C.6: INCREASED GRADIENT (IG) CAM RULE
if ~isempty(Lambda_prime) % Point Box Case -- w_j = A
y(Lambda_prime)=(1./length(Lambda_prime));
y=y';
else
sumL = sum(1./(artmap.M-T(Lambda)));
y(Lambda)=(1./(artmap.M-T(Lambda)))./sumL;
y=y';
end
% Store the distributed y values for all test points. This is used
% in the pseudo-inverse part
yMatrix(sampleNumber,:)= y;
% C.7 DISTRIBUTED OUTPUT CLASS PREDICTIONS
sigma = artmap.W'*y';
[dummy, class]=max(sigma);
sigmaS(:,sampleNumber)=sigma;
classes(sampleNumber)=class;
end % for sampleNumber = 1:numSamples
return
|
|
Contact us at files@mathworks.com