{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Mockup Data" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "To test the `FeatureExtractor` class from the `time_domain_features.py` script with a simple mockup dataset of 5 to 10 data points directly in a Python notebook." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Importing Modules\n", "\n", "Use relative imports or modify the path to include the directory where the module is stored. In this example, we’ll simulate the relative import setup." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "import sys\n", "import numpy as np\n", "import pandas as pd\n", "# Assuming the src directory is one level up from the notebooks directory\n", "sys.path.append('../src/features')\n", "\n", "from time_domain_features import FeatureExtractor" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Create Mockup Data\n", "\n", "Create a small dataset with 5 to 10 data points. Simulate importing the `FeatureExtractor` from its relative path in the notebooks directory." ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | SampleData | \n", "
|---|---|
| 0 | \n", "0.496714 | \n", "
| 1 | \n", "-0.138264 | \n", "
| 2 | \n", "0.647689 | \n", "
| 3 | \n", "1.523030 | \n", "
| 4 | \n", "-0.234153 | \n", "
| 5 | \n", "-0.234137 | \n", "
| 6 | \n", "1.579213 | \n", "
| 7 | \n", "0.767435 | \n", "
| 8 | \n", "-0.469474 | \n", "
| 9 | \n", "0.542560 | \n", "