非线性函数

  在A和B之间插入非线性函数S,表达式为: A ( S ( B v ) ) A(S(Bv)) A(S(Bv)),这是一个非常大的进步。最终发现平滑的逻辑函数S被更简单的斜坡函数ReLU所替代, R e L U ( x ) = m a x ( 0 , x ) ReLU(x)= max (0, x) ReLU(x)=max(0,x)

F ( v ) = L ( R ( L ( R ) … ( L v ) ) ) F(v)=L(R(L(R)\dots(Lv))) F(v)=L(R(L(R)(Lv)))

The functions that yield deep learning have the form F(v)= L(R(L(R(… .(Lv))))).This is a composition of affine functions Lo = Ao + b with nonlinear functions R—which act on each component of the vector Lv. The matrices A and the bias vectors bare the weights in the learning function F’. It is the A’s and b’s that must be learnedfrom the training data, so that the outputs F(v) will be(nearly) correct.Then F can beapplied to new samples from the same population. If the weights (A’s and b’s) are wellchosen,the outputs F(v) from the unseen test data should be accurate. More layersin the function F’ will typically produce more accuracy in F(o).
Properly speaking, F(a, z) depends on the input o and the weights a (all the A’s andb’s). The outputs v = ReLU(Ajo + b1) from the first step produce the first hiddenlayer in our neural net. The complete net starts with the input layer o and ends with theoutput layer w = F(). The affine part Le.(vk-1)= AkOk-1+ bke of each step uses thecomputed weights Ak and bk.

Here is a picture of the neural net, to show the structure of F(v). The input layercontains the training samples o = vg. The output is their classification w = F(o).For perfect learning, w will be a (correct) digit from 0 to 9. The hidden layersadd depth to the network. It is that depth which has allowed the composite function Fto be so successful in deep learning. In fact the number of weights A i j A_{ij} Aij and b j b_j bj in the neural net is often larger than the number of inputs from the training samples v.

参数量远远大于训练样本个数(待验证)。

在Matlab中,求解非线性函数可以使用多种方法。其中一种方法是二分法。二分法是一种迭代方法,通过不断缩小搜索区间来逼近函数的根。在Matlab中,可以使用dichotomy函数来实现二分法。该函数需要输入四个变量:fun, a, b, tol。其中,fun表示要计算根的函数,a和b表示根的搜索区间的左右端点,tol表示误差的容忍度。函数fun的定义可以根据具体的非线性函数进行修改。在该函数中,需要将要求解的非线性函数转化为等式形式,并返回等式的差值。通过迭代运算,可以得到非线性函数的近似解。 除了二分法,Matlab还提供了其他几种求解非线性函数的方法。例如,可以使用内置的求解方程函数roots、fzero和fsolve来求解非线性函数的根。roots函数用于求解多项式函数的根,fzero函数用于求解单变量非线性函数的根,而fsolve函数可以用于求解多非线性方程组的根。通过输入相应的函数和初始值,这些函数可以自动迭代求解非线性函数的根。 总结起来,Matlab提供了多种方法来求解非线性函数,包括二分法、roots函数、fzero函数和fsolve函数。你可以根据具体的问题选择合适的方法来求解非线性函数的根。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [MATLAB求解非线性方程模型](https://blog.csdn.net/qq_49288154/article/details/122244955)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *3* [MATLAB求解非线性方程组的五种方法](https://blog.csdn.net/weixin_47567401/article/details/113517517)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值