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": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import sys\n",
|
|
||||||
"import numpy as np\n",
|
"import numpy as np\n",
|
||||||
"import pandas as pd\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"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -276,7 +271,12 @@
|
|||||||
],
|
],
|
||||||
"source": [
|
"source": [
|
||||||
"import pandas as pd\n",
|
"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",
|
"extracted = FeatureExtractor(mock_df['SampleData'])\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Format with pandas DataFramw\n",
|
"# Format with pandas DataFramw\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user