Icon

Train an LSTM for Sentiment Analysis

This workflow shows how to train an LSTM neural network for text classification based on the example of sentiment analysis.

Define Network Training and Predicting Evaluation Reading and Preprocessing Deployment Train an LSTM Model for Sentiment AnalysisThis workflow shows how to train an LSTM neural network for text classification based on the example of sentiment analysis. Shape: maxsequence lengthInput: # words indictionary + 1128 unitsActivation function:sigmoid1 unitTrain thenetwork Probability to predictionPredicton test dataSave trained modelTraining dataTest data128 unitsKeras Input Layer Keras EmbeddingLayer Keras Dense Layer Keras NetworkLearner Rule Engine Keras NetworkExecutor Scorer Keras NetworkWriter Preprocesstraining set Preprocess test set Table Reader Table Reader Keras LSTM Layer Define Network Training and Predicting Evaluation Reading and Preprocessing Deployment Train an LSTM Model for Sentiment AnalysisThis workflow shows how to train an LSTM neural network for text classification based on the example of sentiment analysis. Shape: maxsequence lengthInput: # words indictionary + 1128 unitsActivation function:sigmoid1 unitTrain thenetwork Probability to predictionPredicton test dataSave trained modelTraining dataTest data128 unitsKeras Input Layer Keras EmbeddingLayer Keras Dense Layer Keras NetworkLearner Rule Engine Keras NetworkExecutor Scorer Keras NetworkWriter Preprocesstraining set Preprocess test set Table Reader Table Reader Keras LSTM Layer

Nodes

Extensions

Links