deeplearing Toolboxes 工具箱中的nn.nonSparsityPenalty表示什么意思

dlcsdn16 2017-04-25 02:43:23
在nnff.m 中nn.nonSparsityPenalty的参数表示什么意思

if(nn.nonSparsityPenalty>0)
nn.p{i} = 0.99 * nn.p{i} + 0.01 * mean(nn.a{i}, 1);
end

还有就是nn.p{i}这个参数的作用是什么
...全文
554 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
weixin_41946740 2018-07-24
  • 打赏
  • 举报
回复
这是平均激活度,为了求KL距离,惩罚稀疏性
speechtoolboxes专门的语音处理工具-speech_toolboxes2.rar speech_toolboxes专门的语音处理工具 其主程序mainspeechgui.m为: % Main GUI window for speech toolboxes in Childers' Speech book % This GUI window is designed to run in the Matlab runtime server % mode.  From this window the user can call any of the software % applications in the Speech book. % Author : D. G. Childers % Date : 12/18/98 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% close all; clear; clc; path; path; path; path; path; path; path; path; path; path; %path; %path; %path; %path; %path; %path; %path; %path; %path; %path; % Define some global variables check = 1;        %Variable used for proper closing and opening of windows catch2 = 'check = 0;'; catch1 = 'break;'; %color_flag=0;  % Black background and white text color_flag=1;  % White background and black text global BACK_COLOR TEXT_COLOR; if color_flag == 1 BACK_COLOR=[1 1 1]; TEXT_COLOR=[0 0 0]; else BACK_COLOR=[0 0 0]; TEXT_COLOR=[1 1 1]; end % Define some character strings o_fname=''; o_pname=''; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Set position and size of analysis window PV=[10 40 180 463]; s2 = 'Speech GUI'; % Open analysis window while exist==1    try1 = 'get;';    eval;    if check ==0       clear m_gui_win_h;       check = 1;       break;    end        s1 = get;    if ~strcmp       clear m_gui_win_h;       break;    end    figure;    break; end; if exist~=1; m_gui_win_h=figure('Position',PV,...   'Resize','on',...   'Numbertitle','off',...   'color',BACK_COLOR,...   'Name',s2);    m_gui_pb_displays_h=uicontrol('Style','pushbutton',...       'Position',[10 420 165 30],...       'String','Chapter 1: display_speech_1',...       'Callback','display_speech_1_path');        m_gui_pb_analysis_h=uicontrol('Style','pushbutton',...       'Position',[10 380 165 30],...       'String','Chapter 2: analysis',...       'Callback','analysis_path');        m_gui_pb_speechegg_h=uicontrol('Style','pushbutton',...       'Position',[10 340 165 30],...       'String','Chapter 4: display_speech_egg  ',...       'Callback','display_speech_egg_path');    m_gui_pb_formant_h=uicontrol('Style','pushbutton',...       'Position',[10 300 165 30],...       'String','Chapter 6: formant ',...       'Callback','formant_path');        m_gui_pb_vocos_h=uicontrol('Style','pushbutton',...       'Position',[10 260 165 30],...       'String','Chapter 7: vocos ',...       'Callback','vocos_path');        m_gui_pb_displaysp_h = uicontrol('Style','pushbutton',...       'Position',[10 220 165 30],...       'String','Chapter 7: display_speech',...       'Callback','display_speech_path');        m_gui_pb_time_h=uicontrol('Style','pushbutton',...       'Position',[10 180 165 30],...       'String','Chapter 8: time',...       'Callback','time_path');        m_gui_pb_vocalfold_h=uicontrol('Style','pushbutton',...       'Position',[10 140 165 30],...       'String','Chapter 9: vocal_fold',...       'Callback','vocal_fold_path');        m_gui_pb_formanttrk_h=uicontrol('Style','pushbutton',...       'Position',[10 100 165 30],...       'String','Chapter 10: formant_track',...       'Callback','formant_track_path');    m_gui_pb_artm_h=uicontrol('Style','pushbutton',...       'Position',[10 60 165 30],...       'String','Chapter 10: artm',...       'Callback','artm_path');        m_gui_pb_cancel_h=uicontrol('Style','pushbutton',...       'Position',[10 20 165 30],...       'String','Close/Cancel/Quit',...       'Callback','close_main_speechgui');     end; 运行这个程序后将出现一个主界面,我运行后的演示图片如:Untitled.fig\Untitled1.fig\Untitled2.fig, 当然你也可以自己演示更多的效果的,这个东东真的很有用的,
speechtoolboxes专门的语音处理工具-speech_toolboxes1.rar speech_toolboxes专门的语音处理工具 其主程序mainspeechgui.m为: % Main GUI window for speech toolboxes in Childers' Speech book % This GUI window is designed to run in the Matlab runtime server % mode.  From this window the user can call any of the software % applications in the Speech book. % Author : D. G. Childers % Date : 12/18/98 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% close all; clear; clc; path; path; path; path; path; path; path; path; path; path; %path; %path; %path; %path; %path; %path; %path; %path; %path; %path; % Define some global variables check = 1;        %Variable used for proper closing and opening of windows catch2 = 'check = 0;'; catch1 = 'break;'; %color_flag=0;  % Black background and white text color_flag=1;  % White background and black text global BACK_COLOR TEXT_COLOR; if color_flag == 1 BACK_COLOR=[1 1 1]; TEXT_COLOR=[0 0 0]; else BACK_COLOR=[0 0 0]; TEXT_COLOR=[1 1 1]; end % Define some character strings o_fname=''; o_pname=''; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Set position and size of analysis window PV=[10 40 180 463]; s2 = 'Speech GUI'; % Open analysis window while exist==1    try1 = 'get;';    eval;    if check ==0       clear m_gui_win_h;       check = 1;       break;    end        s1 = get;    if ~strcmp       clear m_gui_win_h;       break;    end    figure;    break; end; if exist~=1; m_gui_win_h=figure('Position',PV,...   'Resize','on',...   'Numbertitle','off',...   'color',BACK_COLOR,...   'Name',s2);    m_gui_pb_displays_h=uicontrol('Style','pushbutton',...       'Position',[10 420 165 30],...       'String','Chapter 1: display_speech_1',...       'Callback','display_speech_1_path');        m_gui_pb_analysis_h=uicontrol('Style','pushbutton',...       'Position',[10 380 165 30],...       'String','Chapter 2: analysis',...     

579

社区成员

发帖
与我相关
我的任务
社区描述
CUDA™是一种由NVIDIA推出的通用并行计算架构,该架构使GPU能够解决复杂的计算问题。 它包含了CUDA指令集架构(ISA)以及GPU内部的并行计算引擎。
社区管理员
  • CUDA编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧