Main Content

Deep Learning with Time Series, Sequences, and Text

Create and train networks for time series classification, regression, and forecasting tasks

Create and train networks for time series classification, regression, and forecasting tasks. Train long short-term memory (LSTM) networks for sequence-to-one or sequence-to-label classification and regression problems. You can train LSTM networks on text data using word embedding layers (requires Text Analytics Toolbox™) or convolutional neural networks on audio data using spectrograms (requires Audio Toolbox™).

Apps

Deep Network Designer Design, visualize, and train deep learning networks

Functions

expand all

trainingOptions Options for training deep learning neural network
trainNetwork Train deep learning neural network
analyzeNetwork Analyze deep learning network architecture
sequenceInputLayer Sequence input layer
featureInputLayer Feature input layer
lstmLayer Long short-term memory (LSTM) layer
bilstmLayer Bidirectional long short-term memory (BiLSTM) layer
gruLayer Gated recurrent unit (GRU) layer
sequenceFoldingLayer Sequence folding layer
sequenceUnfoldingLayer Sequence unfolding layer
flattenLayer Flatten layer
fullyConnectedLayer Fully connected layer
reluLayer Rectified Linear Unit (ReLU) layer
leakyReluLayer Leaky Rectified Linear Unit (ReLU) layer
clippedReluLayer Clipped Rectified Linear Unit (ReLU) layer
eluLayer Exponential linear unit (ELU) layer
tanhLayer Hyperbolic tangent (tanh) layer
swishLayer Swish layer
dropoutLayer 辍学层
softmaxLayer Softmax layer
classificationLayer Classification output layer
regressionLayer Create a regression output layer
classify Classify data using a trained deep learning neural network
predict 预测的反应using a trained deep learning neural network
activations 电脑及相关知识ute deep learning network layer activations
predictAndUpdateState 预测的反应using a trained recurrent neural network and update the network state
classifyAndUpdateState Classify data using a trained recurrent neural network and update the network state
resetState Reset the state of a recurrent neural network
confusionchart Create confusion matrix chart for classification problem
sortClasses Sort classes of confusion matrix chart
padsequences Pad or truncate sequence data to same length

Blocks

expand all

Predict 预测的反应using a trained deep learning neural network
Stateful Predict 预测的反应using a trained recurrent neural network
Stateful Classify Classify data using a trained deep learning recurrent neural network

Properties

ConfusionMatrixChart Properties Confusion matrix chart appearance and behavior

Examples and How To

Sequences and Time Series

Sequence Classification Using Deep Learning

这个例子年代hows how to classify sequence data using a long short-term memory (LSTM) network.

Sequence-to-Sequence Classification Using Deep Learning

这个例子年代hows how to classify each time step of sequence data using a long short-term memory (LSTM) network.

Sequence-to-Sequence Regression Using Deep Learning

这个例子年代hows how to predict the remaining useful life (RUL) of engines by using deep learning.

Time Series Forecasting Using Deep Learning

这个例子年代hows how to forecast time series data using a long short-term memory (LSTM) network.

分类使用深度学习视频

这个例子年代hows how to create a network for video classification by combining a pretrained image classification model and an LSTM network.

分类使用深度学习视频with Custom Training Loop

这个例子年代hows how to create a network for video classification by combining a pretrained image classification model and a sequence classification network.

Speech Command Recognition Using Deep Learning

这个例子年代hows how to train a deep learning model that detects the presence of speech commands in audio.

Image Captioning Using Attention

这个例子年代hows how to train a deep learning model for image captioning using attention.

Train Network Using Custom Mini-Batch Datastore for Sequence Data

这个例子年代hows how to train a deep learning network on out-of-memory sequence data using a custom mini-batch datastore.

Visualize Activations of LSTM Network

这个例子年代hows how to investigate and visualize the features learned by LSTM networks by extracting the activations.

Sequence-to-Sequence Classification Using 1-D Convolutions

这个例子年代hows how to classify each time step of sequence data using a generic temporal convolutional network (TCN).

Chemical Process Fault Detection Using Deep Learning

这个例子年代hows how to use simulation data to train a neural network that can detect faults in a chemical process.

Build Networks with Deep Network Designer

Interactively build and edit deep learning networks.

Create Simple Sequence Classification Network Using Deep Network Designer

这个例子年代hows how to create a simple long short-term memory (LSTM) classification network using Deep Network Designer.

Predict and Update Network State in Simulink

这个例子年代hows how to predict responses for a trained recurrent neural network in Simulink® by using theStateful Predictblock.

Classify and Update Network State in Simulink

这个例子年代hows how to classify data for a trained recurrent neural network in Simulink® by using theStateful Classifyblock.

Text Data

Classify Text Data Using Deep Learning

这个例子年代hows how to classify text data using a deep learning long short-term memory (LSTM) network.

Classify Text Data Using Convolutional Neural Network

这个例子年代hows how to classify text data using a convolutional neural network.

Multilabel Text Classification Using Deep Learning

这个例子年代hows how to classify text data that has multiple independent labels.

Classify Out-of-Memory Text Data Using Deep Learning

这个例子年代hows how to classify out-of-memory text data with a deep learning network using a transformed datastore.

Sequence-to-Sequence Translation Using Attention

这个例子年代hows how to convert decimal strings to Roman numerals using a recurrent sequence-to-sequence encoder-decoder model with attention.

Generate Text Using Deep Learning

这个例子年代hows how to train a deep learning long short-term memory (LSTM) network to generate text.

Pride and Prejudice and MATLAB

这个例子年代hows how to train a deep learning LSTM network to generate text using character embeddings.

Word-By-Word Text Generation Using Deep Learning

这个例子年代hows how to train a deep learning LSTM network to generate text word-by-word.

Generate Text Using Autoencoders

这个例子年代hows how to generate text data using autoencoders.

Define Text Encoder Model Function

这个例子年代hows how to define a text encoder model function.

Define Text Decoder Model Function

这个例子年代hows how to define a text decoder model function.

Concepts

Long Short-Term Memory Networks

Learn about long short-term memory (LSTM) networks.

List of Deep Learning Layers

Discover all the deep learning layers in MATLAB®.

Datastores for Deep Learning

Learn how to use datastores in deep learning applications.

Deep Learning in MATLAB

Discover deep learning capabilities in MATLAB using convolutional neural networks for classification and regression, including pretrained networks and transfer learning, and training on GPUs, CPUs, clusters, and clouds.

Deep Learning Tips and Tricks

Learn how to improve the accuracy of deep learning networks.

Data Sets for Deep Learning

Discover data sets for various deep learning tasks.

Featured Examples