en directo!
This commit is contained in:
2
.idea/PythonProject.iml
generated
2
.idea/PythonProject.iml
generated
@@ -2,7 +2,7 @@
|
||||
<module type="PYTHON_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.12" jdkType="Python SDK" />
|
||||
<orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
@@ -9,8 +9,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:13:55.436438Z",
|
||||
"start_time": "2025-03-02T19:13:46.916154Z"
|
||||
"end_time": "2025-03-26T17:01:47.524297Z",
|
||||
"start_time": "2025-03-26T17:01:45.366515Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -32,8 +32,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:13:55.474641Z",
|
||||
"start_time": "2025-03-02T19:13:55.449280Z"
|
||||
"end_time": "2025-03-26T17:01:47.537683Z",
|
||||
"start_time": "2025-03-26T17:01:47.535123Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -55,8 +55,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:13:57.903721Z",
|
||||
"start_time": "2025-03-02T19:13:55.482610Z"
|
||||
"end_time": "2025-03-26T17:01:48.576752Z",
|
||||
"start_time": "2025-03-26T17:01:47.541837Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -78,8 +78,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:13:58.869318Z",
|
||||
"start_time": "2025-03-02T19:13:58.856580Z"
|
||||
"end_time": "2025-03-26T17:01:48.960977Z",
|
||||
"start_time": "2025-03-26T17:01:48.955279Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -115,8 +115,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:07.618668Z",
|
||||
"start_time": "2025-03-02T19:13:58.903011Z"
|
||||
"end_time": "2025-03-26T17:01:53.611583Z",
|
||||
"start_time": "2025-03-26T17:01:48.972848Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -371,8 +371,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:07.774264Z",
|
||||
"start_time": "2025-03-02T19:14:07.736637Z"
|
||||
"end_time": "2025-03-26T17:01:53.632793Z",
|
||||
"start_time": "2025-03-26T17:01:53.627520Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -460,8 +460,8 @@
|
||||
"id": "b46901ba",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:07.881015Z",
|
||||
"start_time": "2025-03-02T19:14:07.862014Z"
|
||||
"end_time": "2025-03-26T17:01:53.673574Z",
|
||||
"start_time": "2025-03-26T17:01:53.669542Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -492,8 +492,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:08.125032Z",
|
||||
"start_time": "2025-03-02T19:14:08.118581Z"
|
||||
"end_time": "2025-03-26T17:01:53.804361Z",
|
||||
"start_time": "2025-03-26T17:01:53.801206Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -516,8 +516,8 @@
|
||||
"outputs_hidden": true
|
||||
},
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:09.127121Z",
|
||||
"start_time": "2025-03-02T19:14:08.512800Z"
|
||||
"end_time": "2025-03-26T17:01:54.004160Z",
|
||||
"start_time": "2025-03-26T17:01:53.836663Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -550,8 +550,8 @@
|
||||
"id": "d4e2a7aa",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:09.252955Z",
|
||||
"start_time": "2025-03-02T19:14:09.220421Z"
|
||||
"end_time": "2025-03-26T17:01:54.280546Z",
|
||||
"start_time": "2025-03-26T17:01:54.264893Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -582,8 +582,8 @@
|
||||
"id": "1dfbc859",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:09.887517Z",
|
||||
"start_time": "2025-03-02T19:14:09.417859Z"
|
||||
"end_time": "2025-03-26T17:01:54.453276Z",
|
||||
"start_time": "2025-03-26T17:01:54.336850Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -618,8 +618,8 @@
|
||||
"id": "aa4aa1a2",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:14:18.221695Z",
|
||||
"start_time": "2025-03-02T19:14:09.977021Z"
|
||||
"end_time": "2025-03-26T17:01:57.768393Z",
|
||||
"start_time": "2025-03-26T17:01:54.459124Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -633,8 +633,8 @@
|
||||
"id": "ef4a6478",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:16:52.896034Z",
|
||||
"start_time": "2025-03-02T19:14:18.274675Z"
|
||||
"end_time": "2025-03-26T17:01:58.007218Z",
|
||||
"start_time": "2025-03-26T17:01:57.810713Z"
|
||||
}
|
||||
},
|
||||
"source": [
|
||||
@@ -661,19 +661,14 @@
|
||||
],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"C:\\Users\\lucia\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\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",
|
||||
"Summarize dataset: 80%|████████ | 28/35 [00:06<00:01, 6.63it/s, Describe variable:Movement] C:\\Users\\lucia\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\site-packages\\ydata_profiling\\model\\pandas\\describe_date_pandas.py:57: UserWarning: Discarding nonzero nanoseconds in conversion.\n",
|
||||
" \"min\": pd.Timestamp.to_pydatetime(series.min()),\n",
|
||||
"C:\\Users\\lucia\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python312\\site-packages\\ydata_profiling\\model\\pandas\\describe_date_pandas.py:58: UserWarning: Discarding nonzero nanoseconds in conversion.\n",
|
||||
" \"max\": pd.Timestamp.to_pydatetime(series.max()),\n",
|
||||
"Summarize dataset: 100%|██████████| 613/613 [01:43<00:00, 5.91it/s, Completed] \n",
|
||||
"Generate report structure: 100%|██████████| 1/1 [00:09<00:00, 9.54s/it]\n",
|
||||
"Render HTML: 100%|██████████| 1/1 [00:17<00:00, 17.93s/it]\n",
|
||||
"Export report to file: 100%|██████████| 1/1 [00:00<00:00, 5.79it/s]\n"
|
||||
"ename": "ModuleNotFoundError",
|
||||
"evalue": "No module named 'ydata_profiling'",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001B[1;31m---------------------------------------------------------------------------\u001B[0m",
|
||||
"\u001B[1;31mModuleNotFoundError\u001B[0m Traceback (most recent call last)",
|
||||
"Cell \u001B[1;32mIn[13], line 2\u001B[0m\n\u001B[0;32m 1\u001B[0m \u001B[38;5;66;03m# Generate analysis info into html folder\u001B[39;00m\n\u001B[1;32m----> 2\u001B[0m \u001B[38;5;28;01mfrom\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;21;01mydata_profiling\u001B[39;00m\u001B[38;5;250m \u001B[39m\u001B[38;5;28;01mimport\u001B[39;00m ProfileReport\n\u001B[0;32m 4\u001B[0m profile \u001B[38;5;241m=\u001B[39m ProfileReport(data_df, title\u001B[38;5;241m=\u001B[39m\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124mOpenBCI Data Profiling Report\u001B[39m\u001B[38;5;124m\"\u001B[39m, explorative\u001B[38;5;241m=\u001B[39m\u001B[38;5;28;01mTrue\u001B[39;00m)\n\u001B[0;32m 5\u001B[0m report \u001B[38;5;241m=\u001B[39m ProfileReport(\n\u001B[0;32m 6\u001B[0m data_df,\n\u001B[0;32m 7\u001B[0m title\u001B[38;5;241m=\u001B[39m\u001B[38;5;124m\"\u001B[39m\u001B[38;5;124morigin file OpenBCI\u001B[39m\u001B[38;5;124m\"\u001B[39m,\n\u001B[1;32m (...)\u001B[0m\n\u001B[0;32m 17\u001B[0m },\n\u001B[0;32m 18\u001B[0m )\n",
|
||||
"\u001B[1;31mModuleNotFoundError\u001B[0m: No module named 'ydata_profiling'"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -684,7 +679,7 @@
|
||||
"id": "09039cdf",
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:24:14.038282Z",
|
||||
"end_time": "2025-03-26T17:01:58.013688100Z",
|
||||
"start_time": "2025-03-02T19:24:13.189122Z"
|
||||
}
|
||||
},
|
||||
@@ -720,41 +715,6 @@
|
||||
}
|
||||
],
|
||||
"execution_count": 20
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2025-03-02T19:19:56.383373Z",
|
||||
"start_time": "2025-03-02T19:19:54.731156Z"
|
||||
}
|
||||
},
|
||||
"cell_type": "code",
|
||||
"source": [
|
||||
"# Clean the dataset\n",
|
||||
"dataset = pd.read_csv(os.path.join(\"csv\", 'openbci.csv'))\n",
|
||||
"\n",
|
||||
"print(\"Column Timestamp is not useful, dropping it\")\n",
|
||||
"dataset = dataset.drop(columns=['Timestamp'])\n",
|
||||
"for column in dataset.columns:\n",
|
||||
" if dataset[column].unique().size == 1:\n",
|
||||
" print(f\"Column {column} has only one unique value, dropping it\")\n",
|
||||
" dataset = dataset.drop(columns=[column])"
|
||||
],
|
||||
"id": "a84eb1933bd93977",
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Column Timestamp is not useful, dropping it\n",
|
||||
"Column Analog Channel 0 has only one unique value, dropping it\n",
|
||||
"Column Analog Channel 1 has only one unique value, dropping it\n",
|
||||
"Column Analog Channel 2 has only one unique value, dropping it\n",
|
||||
"Column Marker Channel has only one unique value, dropping it\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"execution_count": 16
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
|
380
classifier.ipynb
380
classifier.ipynb
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user