Main Content

统计eful Classify

使用经过训练的深度学习复发性神经网络对数据进行分类

  • 图书馆:
  • 深度学习工具箱 /深神经网络

  • 统计eful Classify block

描述

统计eful Classifyblock predicts class labels for the data at the input by using the trained recurrent neural network specified through the block parameter. This block allows loading of a pretrained network into the Simulink®model from a MAT-file or from a MATLAB®function. This block updates the state of the network with every prediction.

To reset the state of recurrent neural network to its initial state, place the统计eful Classify块内部可重置子系统(万博1manbetxSimulink)block and use theResetControl signal as trigger.

Limitations

统计eful Classifyblock does not support MAT-file logging.

Ports

Input

展开全部

输入的格式取决于数据的类型。

Input 描述
向量序列 C-by-smatrices, whereC是序列的功能数量,sis the sequence length.
2-D图像序列 H-by-w-by-C-by-s阵列,哪里H,,,,w,,,,andC分别对应于图像的高度,宽度和数量,并且sis the sequence length.

输出

展开全部

预测ed class labels with the highest score, returned as an-1列举的标签向量,其中nis the number of observations.

预测ed scores, returned as an-by-k矩阵,,,,wHeren是观察的数量,并且k是类的数量。

Labels associated with the predicted scores, returned as an-by-k矩阵,,,,wHeren是观察的数量,并且k是类的数量。

参数

展开全部

指定训练有素的复发神经网络的来源。训练有素的网络必须至少具有一个复发层(例如,LSTM网络)。选择以下一项:

  • 来自Mat-File的网络— Import a trained recurrent neural network from a MAT-file containing a系列网络,,,,dagnetwork, 或者dlnetworkobject.

  • 网络from MATLAB function- 从MATLAB函数中导入预处理的复发性神经网络。

程序化使用

Block Parameter:网络
类型:角色向量,字符串
值:“来自Mat-File的网络”|“来自MATLAB功能的网络”
默认:“来自Mat-File的网络”

This parameter specifies the name of the MAT-file that contains the trained recurrent neural network to load. If the file is not on the MATLAB path, use theBrowse按钮以找到文件。

依赖性

To enable this parameter, set the网络参数为来自Mat-File的网络

程序化使用

Block Parameter:NetworkFilePath
类型:角色向量,字符串
值:垫子档案或名称
默认:'untitled.mat'

This parameter specifies the name of the MATLAB function for the pretrained recurrent neural network.

依赖性

To enable this parameter, set the网络参数为网络from MATLAB function

程序化使用

Block Parameter:网络函数
类型:角色向量,字符串
值:MATLAB功能名称
默认:'无标题'

采样时间参数指定块在模拟过程中计算新的输出值何时。有关详细信息,请参阅指定样本时间(万博1manbetxSimulink)

Specify the采样时间当您不希望输出具有时间偏移时,参数为标量。要在输出中添加时间偏移,请指定采样时间参数为a1-by-2第一个元素是采样周期,第二个元素是偏移。

默认情况下,采样时间参数值是-1继承值。

程序化使用

Block Parameter:采样时间
类型:角色向量
值:标量|向量
默认:'-1'

启用输出端口ypredthat outputs the label with the highest score.

程序化使用

Block Parameter:分类
类型:角色向量,字符串
值:'off'|'上'
默认:'上'

启用输出端口ssCoresand标签该输出所有预测的分数和相关的类标签。

程序化使用

Block Parameter:预测
类型:角色向量,字符串
值:'off'|'上'
默认:'off'

扩展功能

版本历史记录

在R2021a中引入