使用训练有素的复发神经网络对数据进行分类,并更新网络状态
您可以在CPU或GPU上使用经过训练的深度学习网络进行预测。Using a GPU requires Parallel Computing Toolbox™ and a supported GPU device. For information on supported devices, see释放的G金宝appPU支持(并行计算工具箱)。Specify the hardware requirements using the'ExecutionEnvironment'
name-value pair argument.
[
classifies the data inupdatedNet
,ypred
] = classifyAndUpdateState(recnet
,sequences
)sequences
using the trained recurrent neural networkrecnet
并更新网络状态。
This function supports recurrent neural networks only. The inputrecnet
must have at least one recurrent layer.
[
uses any of the arguments in the previous syntaxes and additional options specified by one or moreupdatedNet
,ypred
] = classifyAndUpdateState(___,姓名,Value
)姓名,Value
配对参数。例如,“ MINIBATCHSIZE”,27
使用大小27的迷你批次对数据进行分类
[
在上一个语法中使用任何参数,返回分类得分的矩阵,并更新网络状态。updatedNet
,ypred
,分数
] = classifyAndUpdateState(___)
Tip
在使用不同长度的序列进行预测时,微型批量大小会影响输入数据中添加的填充量,从而导致不同的预测值。尝试使用不同的值以查看哪些与您的网络最有效。To specify mini-batch size and padding options, use the“ MINIBATCHSIZE”
和'SequenceLength'
选项分别。
当您使用网络训练网络时trainNetwork
功能,或使用预测或验证功能dagnetwork
和SeriesNetwork
objects, the software performs these computations using single-precision, floating-point arithmetic. Functions for training, prediction, and validation includetrainNetwork
,预测
,classify
, 和激活
。当您同时使用CPU和GPU训练网络时,该软件使用单精度算术。
[1] M. Kudo,J。Toyama和M. Shimbo。“使用传递区域的多维曲线分类。”图案识别字母。卷。20,编号11-13,第1103–1111页。
[2]UCI Machine Learning Repository: Japanese Vowels Dataset。https://archive.ics.uci.edu/ml/datasets/japanese+vowels