refactor(notebooks): Move relative import of FeatureExtraction to "Print Time-domain Feature" section for better context
This commit is contained in:
@@ -29,13 +29,8 @@
|
||||
"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"
|
||||
"import pandas as pd\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -276,7 +271,12 @@
|
||||
],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"# Extract features using our class\n",
|
||||
"import sys\n",
|
||||
"# Assuming the src directory is one level up from the notebooks directory\n",
|
||||
"sys.path.append('../src/features')\n",
|
||||
"from time_domain_features import FeatureExtractor\n",
|
||||
"\n",
|
||||
"# Extract features\n",
|
||||
"extracted = FeatureExtractor(mock_df['SampleData'])\n",
|
||||
"\n",
|
||||
"# Format with pandas DataFramw\n",
|
||||
|
||||
Reference in New Issue
Block a user