No BSD License  

Highlights from
Fuzzy ART and Fuzzy ARTMAP Neural Networks

Fuzzy ART and Fuzzy ARTMAP Neural Networks

by

 

22 Dec 2003 (Updated )

This package allows creation, training, and testing of ART and ARTMAP neural networks.

ART_Add_New_Category(weight)
function resizedWeight = ART_Add_New_Category(weight)
% ART_Add_New_Category    Adds a new category to the given weight matrix.
%    RESIZEDWEIGHT = ART_Add_New_Category(WEIGHT)
%    This function returns a new weight matrix which is identical to the
%    given weight matrix except that it contains one more category which
%    is initialized to all 1's.
% 
%    The input parameter is as follows:
%    The WEIGHT is a matrix of size NumFeatures-by-NumCategories which
%    holds the weights of the network.
%
%    The return parameter is as follows:
%    The RESIZEDWEIGHT is a matrix of size NumFeatures-by-NumCategories+1
%    which holds the weights of the old matrix plus a new category of all
%    values of 1.


% Make sure that the user specified the weight matrix.
if(nargin ~= 1)
    error('You must specify the weight matrix parameter.');    
end

% Create the return weight matrix with the right dimensions.
[numFeatures, numCategories] = size(weight);
newCategory = ones(numFeatures, 1);
resizedWeight = [weight, newCategory];


return

Contact us