diff --git a/code/notebooks/03_feature_extraction.ipynb b/code/notebooks/03_feature_extraction.ipynb index f659f23..5995086 100644 --- a/code/notebooks/03_feature_extraction.ipynb +++ b/code/notebooks/03_feature_extraction.ipynb @@ -186,6 +186,103 @@ "plt.grid(True)\n", "plt.show()" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### Print Time-domain Features" + ] + }, + { + "cell_type": "code", + "execution_count": 23, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
MeanMaxPeak (Pm)Peak-to-Peak (Pk)RMSVarianceStandard DeviationPowerCrest FactorForm FactorPulse IndicatorMarginKurtosisSkewness
00.4480611.5792131.5792132.0486870.8192840.4704670.7230080.6712261.9275531.8285093.5245482.0676381.9177160.412307
\n", + "
" + ], + "text/plain": [ + " Mean Max Peak (Pm) Peak-to-Peak (Pk) RMS Variance \\\n", + "0 0.448061 1.579213 1.579213 2.048687 0.819284 0.470467 \n", + "\n", + " Standard Deviation Power Crest Factor Form Factor Pulse Indicator \\\n", + "0 0.723008 0.671226 1.927553 1.828509 3.524548 \n", + "\n", + " Margin Kurtosis Skewness \n", + "0 2.067638 1.917716 0.412307 " + ] + }, + "execution_count": 23, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pandas as pd\n", + "# Extract features using our class\n", + "extracted = FeatureExtractor(mock_df['SampleData'])\n", + "\n", + "# Format with pandas DataFramw\n", + "features = pd.DataFrame(extracted.features, index=[0])\n", + "features\n" + ] } ], "metadata": {