当前位置:网站首页>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 .
边栏推荐
- Use of Tex editor
- Leetcode sword offer find the number I (nine) in the sorted array
- 5-1 blocking / non blocking, synchronous / asynchronous
- Global and Chinese market of trimethylamine 2022-2028: Research Report on technology, participants, trends, market size and share
- 解决pushgateway数据多次推送会覆盖的问题
- 使用JMeter对WebService进行压力测试
- Adobe Premiere Pro 15.4 has been released. It natively supports Apple M1 and adds the function of speech to text
- Byte practice plane longitude 2
- el-switch 赋值后状态不变化
- TPS61170QDRVRQ1
猜你喜欢

【pytorch学习笔记】Datasets and Dataloaders
![[ue4] material and shader permutation](/img/8f/7743ac378490fcd7b9ecc5b4c2ef2a.jpg)
[ue4] material and shader permutation

redis缓存穿透,缓存击穿,缓存雪崩解决方案

高并发下之redis锁优化实战

4-20-4-23 concurrent server, TCP state transition;

There are links in the linked list. Can you walk three steps faster or slower

远程服务器后台挂起 nohup

Qt—绘制其他东西

What are the composite types of Blackhorse Clickhouse, an OLAP database recognized in the industry

Redis主从、哨兵、集群模式介绍
随机推荐
High quality workplace human beings must use software to recommend, and you certainly don't know the last one
[opengl] advanced chapter of texture - principle of flowmap
2022/02/14
使用Tengine解决负载均衡的Session问题
【日常训练】395. 至少有 K 个重复字符的最长子串
Using notepad++ to build an arbitrary language development environment
[attention mechanism] [first vit] Detr, end to end object detection with transformers the main components of the network are CNN and transformer
Puppet自动化运维排错案例
Global and Chinese markets for indoor HDTV antennas 2022-2028: Research Report on technology, participants, trends, market size and share
What is label encoding? How to distinguish and use one hot encoding and label encoding?
Yolov5进阶之八 高低版本格式转换问题
链表有环,快慢指针走3步可以吗
5-1 blocking / non blocking, synchronous / asynchronous
406. Reconstruct the queue according to height
Kubernetes 进阶训练营 Pod基础
Yolov5系列(一)——網絡可視化工具netron
【微信小程序】WXSS 模板样式
B2020 分糖果
XWiki安装使用技巧
【pytorch学习笔记】Transforms