Changeset 35 for trunk


Ignore:
Timestamp:
09/06/11 08:05:58 (9 months ago)
Author:
anonymous
Message:

Changing default configuration of the created network when the 'Combi' style and the 'selectBest' selection method is chosen. In that case, the trainParams.maxLayerNeurons has a value of 5. A large value for that parameter can lead to a very big structure during training, requiring great amount of memory. That is just a defualt value; it can be changed before train.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gmdh-t-ann/gmdhNew.m

    r32 r35  
    22% 
    33% Creates a new GMDH network structure. With no more parameters than the 
    4 % input count, the returned network will follow the default PNN structure, 
    5 % where each layer has n!/(2(p-2)!) elements with two inputs, where n is 
     4% input count, the returned network will follow the default PNN structure: 
     5% each layer has n!/(2(p-2)!) elements with two inputs, where n is 
    66% the number of system inputs for the input layer or the number or elements 
    77% of the previous layer, for hidden layers. 
     
    2626%                        contribute to the output of the network. 
    2727% 
    28 %    trainFunction       Specify the network training algorithm. Currently, 
    29 %                        the available value is 'gmdhTrainMeanSquare'. 
    30 % 
    3128%    layerTrainFunction  Specify the layer training algorithm. Currently, 
    3229%                        the available value is 'gmdhTrainMeanSquareLayer'. 
     
    3734%                        to true. 
    3835%     
    39 %   selectMethod         Defines the method for excluding the badly 
     36%    selectMethod        Defines the method for excluding the badly 
    4037%                        performancing neurons in each layer during the  
    4138%                        training. Two methods are available: 
     
    10097    % 
    10198    % Basic train parameters 
    102     gmdhNet.trainParams.maxLayerNeurons = 30; 
     99    if gmdhNet.isCombi && strcmpi(selectMethod, 'selectBest') 
     100        gmdhNet.trainParams.maxLayerNeurons = 5; 
     101    else 
     102        gmdhNet.trainParams.maxLayerNeurons = 30; 
     103    end 
    103104    gmdhNet.trainParams.minLayerNeurons = 1; 
    104105    gmdhNet.trainParams.logs = true; 
Note: See TracChangeset for help on using the changeset viewer.