0001 function set_params(Handles,ThNN,TrainingParams)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038 C=filesep;
0039
0040
0041 set(Handles.Display_Frequency,'String',num2str(TrainingParams.DisplayFrequency));
0042 set(Handles.Testing_Frequency,'String',num2str(TrainingParams.TestingFrequency));
0043
0044 set(Handles.Max_Error,'String',num2str(TrainingParams.MaxError));
0045 set(Handles.Num_Epochs,'String',num2str(TrainingParams.NumEpochs));
0046 set(Handles.Training_Data,'UserData',TrainingParams.Type);
0047 set(Handles.Input_Data,'String',TrainingParams.DataName);
0048
0049 set(Handles.axes3,'UserData',{});
0050 RegressionData=get(Handles.Regression,'String');
0051 ClassificationData=get(Handles.Classification,'String');
0052 SpikeTimesData=get(Handles.Spike_Times,'String');
0053
0054 if ismember(TrainingParams.DataName,RegressionData)
0055 set(Handles.Classification,'Value',1);
0056 set(Handles.Spike_Times,'Value',1);
0057 set(Handles.Regression,'Value',strmatch(TrainingParams.DataName,RegressionData));
0058 set(Handles.Training_Data,'UserData','Regression');
0059 set_io_data(Handles,[pwd, C, 'Datasets', C, 'Regression', C, TrainingParams.DataName],...
0060 TrainingParams.DataName);
0061
0062 elseif ismember(TrainingParams.DataName,ClassificationData)
0063 set(Handles.Regression,'Value',1);
0064 set(Handles.Spike_Times,'Value',1);
0065 set(Handles.Classification,'Value',strmatch(TrainingParams.DataName,ClassificationData));
0066 set(Handles.Training_Data,'UserData','Classification');
0067 set_io_data(Handles,[pwd, C, 'Datasets',C,'Classification',C, TrainingParams.DataName],...
0068 TrainingParams.DataName);
0069
0070 elseif ismember(TrainingParams.DataName,SpikeTimesData)
0071 set(Handles.Classification,'Value',1);
0072 set(Handles.Regression,'Value',1);
0073 set(Handles.Spike_Times,'Value',strmatch(TrainingParams.DataName,SpikeTimesData));
0074 set(Handles.Training_Data,'UserData','SpikeTimes');
0075 set_io_data(Handles,[pwd, C,'Datasets',C,'SpikeTimes',C, TrainingParams.DataName],...
0076 TrainingParams.DataName);
0077
0078 else
0079 disp('Warning: Dataset associated with loaded parameters is not in the current database');
0080 end
0081
0082
0083 Training_Method_Strings=(get(Handles.Training_Method,'String'));
0084 set(Handles.Training_Method,'Value',find(strcmp(Training_Method_Strings,TrainingParams.LearningMethod)));
0085 set(Handles.Learning_Rate,'String',num2str(TrainingParams.WeightLearningRate));
0086 set(Handles.Tau_Learning_Rate,'String',num2str(TrainingParams.DelayLearningRate));
0087 set(Handles.Delay_Enable,'Value',TrainingParams.DelayEnable);
0088 set(Handles.Numerical_Gradient,'Value',TrainingParams.NumericalGradient);
0089
0090
0091
0092
0093
0094
0095
0096 NumInputs=length(ThNN.InputNeurons);
0097 NumOutputs=length(ThNN.OutputNeurons);
0098 NumNeurons=length(ThNN.Neurons);
0099 NumHidden=NumNeurons-(NumInputs+NumOutputs);
0100 set(Handles.Alpha,'String',num2str(ThNN.Neurons(1).Alpha));
0101 if NumHidden>0
0102 set(Handles.Hidden_Inot,'String',num2str(ThNN.Neurons(max(ThNN.InputNeurons)+1).Io));
0103 set(Handles.Output_Inot,'String',num2str(ThNN.Neurons(ThNN.OutputNeurons(1)).Io));
0104 set(Handles.Num_Hidden_Neurons,'String',num2str(NumHidden));
0105 else
0106 set(Handles.Hidden_Inot,'String','0');
0107 set(Handles.Output_Inot,'String',num2str(ThNN.Neurons(ThNN.OutputNeurons(1)).Io));
0108 set(Handles.Num_Hidden_Neurons,'String','0');
0109 end
0110
0111 set(Handles.Reference_Time,'String',num2str(ThNN.ReferenceTime));
0112
0113 set(Handles.NIPS2006_Gradient,'Value',ThNN.NIPS2007Gradient);
0114
0115
0116