{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Univariate time series classification with sktime-dl\n", "[Github](https://github.com/sktime/sktime-dl)\n", "\n", "In this notebook, we use sktime-dl to perform for univariate time series classification by deep learning." ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "import seaborn as sns\n", "\n", "from sklearn.model_selection import GridSearchCV\n", "from sktime.datasets import load_gunpoint, load_italy_power_demand\n", "from sktime_dl.deeplearning import CNNClassifier\n", "\n", "sns.set_style('whitegrid') " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Load a dataset" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | dim_0 | \n", "
|---|---|
| 0 | \n", "0 -0.710520\n", "1 -1.183300\n", "2 -1.372400\n", "3... | \n", "
| 1 | \n", "0 -0.993010\n", "1 -1.426800\n", "2 -1.579900\n", "3... | \n", "
| 2 | \n", "0 1.319100\n", "1 0.569770\n", "2 0.195130\n", "3... | \n", "
| 3 | \n", "0 -0.812440\n", "1 -1.157600\n", "2 -1.416400\n", "3... | \n", "
| 4 | \n", "0 -0.972840\n", "1 -1.390500\n", "2 -1.536700\n", "3... | \n", "