{ "cells": [ { "cell_type": "markdown", "id": "f2da72a3-830f-4a34-b767-230ed0dbf154", "metadata": {}, "source": [ "# Results of RUL estimation using lstm-256" ] }, { "cell_type": "markdown", "id": "e3de787a-3db3-47c0-a1c6-a2b36cc6586f", "metadata": {}, "source": [ "This notebook presents experimental results of anomaly detection on the Tennessee Eastman Process dataset using the model AutoEncoderMLP-256.\n", "\n", "Importing libraries." ] }, { "cell_type": "code", "execution_count": 1, "id": "0d2bf80e-d11f-4c3d-ac75-e4f0cfd418f6", "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "C:\\Users\\user\\conda\\envs\\Latent\\Lib\\site-packages\\tqdm\\auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html\n", " from .autonotebook import tqdm as notebook_tqdm\n" ] } ], "source": [ "from ice.remaining_useful_life_estimation.datasets import RulCmapss\n", "from ice.remaining_useful_life_estimation.models import LSTM\n", "\n", "import pandas as pd\n", "import numpy as np\n", "import torch\n", "from tqdm.auto import trange\n" ] }, { "cell_type": "markdown", "id": "41bd9f60-51bf-4bb8-adc8-33a6abf923a1", "metadata": {}, "source": [ "Initializing model class and train/test data split" ] }, { "cell_type": "code", "execution_count": 2, "id": "814ba92e-e394-49a4-ac06-7b68361cf078", "metadata": {}, "outputs": [], "source": [ "dataset_class = RulCmapss()\n", "\n", "data, target = dataset_class.df[0], dataset_class.target[0]\n", "test_data, test_target = dataset_class.test[0], dataset_class.test_target[0] " ] }, { "cell_type": "markdown", "id": "767c37e2-1750-46d5-9cd7-f628e7322305", "metadata": {}, "source": [ "Training" ] }, { "cell_type": "code", "execution_count": 3, "id": "f9bd5cb4-3cbd-48f2-bb70-8154f2a8e051", "metadata": { "scrolled": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ " 0%| | 0/5 [00:00