activs.m
来自「这是用matlab编写的支持向量机的函数工具箱」· M 代码 · 共 19 行
M
19 行
function activs ( w ) # activs ( w )# silently finds activities of a single neuron with weight vector w# using global data in x,t and gives errors global x ; global t ; a = x * w ; y = sigmoid(a) ; e = t - y ; d = ( y>0.5 ) ; err = ( d != t ) ; errs = sum(err)# (d .- e).^2 )endfunction
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?