This chapter's implementation code can be found at https://github.com/PacktPublishing/Java-Deep-Learning-Cookbook/blob/master/07_Constructing_LSTM_Neural_network_for_sequence_classification/sourceCode/cookbookapp/src/main/java/UciSequenceClassificationExample.java.
After cloning our GitHub repository, navigate to the Java-Deep-Learning-Cookbook/07_Constructing_LSTM_Neural_network_for_sequence_classification/sourceCode directory. Then import the cookbookapp project as a Maven project by importing pom.xml.
Download the data from this UCI website: https://archive.ics.uci.edu/ml/machine-learning-databases/synthetic_control-mld/synthetic_control.data.
We need to create directories to store the train and test data. Refer to the following directory structure:
![](https://static.packt-cdn.com/products/9781788995207/graphics/assets/2ec9aeb2-e022-40dc-9b40-f463321fc911.png)
We need to create two separate folders for the train and test datasets and then create subdirectories...