Convolutional neural networks for TSC
In this recipe, we’ll walk you through building a convolutional neural network to tackle TSC problems. We’ll use the DataModule
class created in the previous recipe to do this.
Getting ready
We start again by importing the dataset used in the previous recipe:
import pandas as pd data_directory = 'assets/datasets/Car' train = pd.read_table(f'{data_directory}/Car_TRAIN.tsv', header=None) test = pd.read_table(f'{data_directory}/Car_TEST.tsv', header=None) datamodule = TSCDataModule(train_df=train, test_df=test, batch_size=8)
We also create an instance of the TSCDataModule
data...