当前位置:网站首页>Matlab r2011b neural network toolbox precautions
Matlab r2011b neural network toolbox precautions
2022-07-03 15:08:00 【trium_ KW】
This is a record of the pit I encountered when using the neural network toolbox , For yourself and others . Write a little first , Update later .
1.
net = feedforwardnet;
net = train(net, attributes, targets);The first line creates a two-layer feedforward network , The number of hidden layer neurons is the default 10, It's no problem . After creating the network , If you use view(net) To view the network topology , You will find that there are no input vectors and output vectors , This is because... Has not been called yet configure function .configure By default, the function is called for the first time train Function is automatically called . There's a pit here . hypothesis :
X = [
1 1 2;
2 1 3;
3 1 1;
2 1 3]';
Y = [
0 1 1 0];That is, the input vector is 3 Dimension vector , Data sets X Contained in the 4 Samples , Training adopts batch training . after train After function call ,net.IW{1,1} The dimension of will become 10x2! Should not be 10x3 Do you ( notes : The number of neurons in the hidden layer 10, Input vector 3 dimension )? Because the dataset X The second attribute of all samples in is the same ( Values are 1), As a result, this attribute is Matlab Ignore it. , I don't know whether it was intentional or bug. resolvent
X(:,find(var(X,0,1) < eps)) = X(:,find(var(X,0,1))) + min(min(X))*1e-5*randn(size(X,1),length(find(var(X,0,1))));namely , Add a small white noise to the ignored columns to make their values different .
边栏推荐
- Byte practice surface longitude
- Zero copy underlying analysis
- 远程服务器后台挂起 nohup
- Chapter 14 class part 1
- 4-24--4-28
- 在MapReduce中利用MultipleOutputs输出多个文件
- Unity hierarchical bounding box AABB tree
- Global and Chinese markets for sterile packaging 2022-2028: Research Report on technology, participants, trends, market size and share
- [opengl] advanced chapter of texture - principle of flowmap
- 2022/02/14
猜你喜欢
![[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer](/img/9b/6ca8375ef8689a80d437665909ae30.png)
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer

Unity hierarchical bounding box AABB tree
![[ue4] material and shader permutation](/img/8f/7743ac378490fcd7b9ecc5b4c2ef2a.jpg)
[ue4] material and shader permutation

Byte practice plane longitude 2

CentOS7部署哨兵Redis(带架构图,清晰易懂)

基础SQL教程

Yolov5 series (I) -- network visualization tool netron

Construction of operation and maintenance system

Qt—绘制其他东西

Kubernetes 进阶训练营 Pod基础
随机推荐
Detailed comments on MapReduce instance code on the official website
[wechat applet] wxss template style
Basic SQL tutorial
Explanation of time complexity and space complexity
Solve the problem that pushgateway data will be overwritten by multiple push
C # realizes the login interface, and the password asterisk is displayed (hide the input password)
[Yu Yue education] scientific computing and MATLAB language reference materials of Central South University
[ue4] Niagara's indirect draw
[ue4] cascading shadow CSM
高并发下之redis锁优化实战
【注意力机制】【首篇ViT】DETR,End-to-End Object Detection with Transformers网络的主要组成是CNN和Transformer
Leetcode sword offer find the number I (nine) in the sorted array
QT - draw something else
Functional modules and application scenarios covered by the productization of user portraits
2022/02/14
Pytoch deep learning and target detection practice notes
"Seven weapons" in the "treasure chest" of machine learning: Zhou Zhihua leads the publication of the new book "machine learning theory guide"
Open under vs2019 UI file QT designer flash back problem
Kubernetes 进阶训练营 Pod基础
Center and drag linked global and Chinese markets 2022-2028: Research Report on technology, participants, trends, market size and share