ANN的纪元是什么?它如何在MATLAB中转换为代码? [英] What is an epoch in ANN's and how does it translate into code in MATLAB?

查看:109
本文介绍了ANN的纪元是什么?它如何在MATLAB中转换为代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试了解(并可视化)关于训练ANN的确切时机.

I'm trying to understand (and visualize) what an epoch exactly is with regards to training an ANN.

我们提供了约7000种产品的培训套件,这些产品具有10个特征(输入).这些产品必须基于这10种输入来分类为7类.

We have a training set of ~7000 products which have 10 characteristics (the inputs). These products have to be categorized into 7 classes based on those 10 inputs.

我们的人工神经网络有10个输入,进入10个神经元的输入层.那些依次进入具有8个神经元的隐藏层.输出层有7个神经元.

Our ANN has 10 inputs which go into an input layer of 10 neurons. Those in turn go into a hidden layer with 8 neurons. The output layer has 7 neurons.

在这种情况下,如何可视化/理解时代?

How can I visualize/understand an epoch in this case?

旁注:我正在用MATLAB编写(我对ANN工具箱也了解)

sidenote: I'm writing this in MATLAB (and I know about the ANN toolbox)

推荐答案

在MATLAB中,一个时代可以被认为是 取决于训练方法(例如,批量还是顺序).

In MATLAB an epoch can be thought of as a completed iteration of the training procedure of your artificial neural network. That is, once all the vectors in your training set have been used by your training algorithm one epoch has passed. Thus, the "real-time duration" of an epoch is dependent on the training method used (batch vs sequential, for example).

引用的MATLAB ANN工具箱词汇表免费版本:

时期-向网络展示一组训练(输入和/或目标)向量,并计算新的权重和偏差.请注意,训练向量可以一次显示一次,也可以一次全部显示.

epoch - Presentation of the set of training (input and/or target) vectors to a network and the calculation of new weights and biases. Note that training vectors can be presented one at a time or all together in a batch.

Matlab允许您设置最大次数,然后终止训练过程.这用于在训练算法的解不收敛的情况下停止训练,以防止无限次进行训练.

Matlab allows you to set a maximum number of epochs after which to terminate the training procedure. This is used to stop the training in case the solution of the training algorithm does not converge, to prevent infinitely running the training.

这篇关于ANN的纪元是什么?它如何在MATLAB中转换为代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆