svc.m
来自「NNDemo2.0是对神经网络实验演示系统NNDemo1.0的进一步增强与扩充」· M 代码 · 共 43 行
M
43 行
function net = svc(arg, sv, w, bias)
%
if nargin == 0
% this is the default constructor
net.kernel = linear;
net.sv = [];
net.w = [];
net.bias = 0;
net = class(net, 'svc');
elseif nargin == 1
if isa(arg, 'svc');
% this is the copy constructor
net = arg;
end
elseif nargin > 6
% there are no other constructors
help svc
else
net.kernel = arg;
net.sv = sv;
net.w = w;
net.bias = bias;
net = class(net, 'svc');
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?