Correciones para reentrenamiento

This commit is contained in:
2025-05-04 20:58:43 +02:00
parent 56991c9f26
commit 721992d6f3
33 changed files with 740951 additions and 240889 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

241
csv/i.ipynb Normal file
View File

@@ -0,0 +1,241 @@
{
"cells": [
{
"cell_type": "code",
"id": "initial_id",
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2025-04-24T11:03:49.387618Z",
"start_time": "2025-04-24T11:03:48.712716Z"
}
},
"source": [
"import pandas as pd\n",
"import os\n",
"from ydata_profiling import ProfileReport\n",
"\n",
"# Cargar el archivo CSV\n",
"file_path = 'openbci.csv'\n",
"df = pd.read_csv(file_path)\n"
],
"outputs": [],
"execution_count": 9
},
{
"metadata": {},
"cell_type": "markdown",
"source": "# TENDENCIA IZQUIERDA\n",
"id": "c7a90478e0fb8b0c"
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-04-24T11:04:10.812537Z",
"start_time": "2025-04-24T11:03:49.395196Z"
}
},
"cell_type": "code",
"source": [
"# Filtrar filas donde la columna 'i' sea igual a 'i'\n",
"filtrado = df[df['Movement'] == 'i']\n",
"\n",
"\n",
"columnas_utiles = [f\"EXG Channel {i}\" for i in range(16)]\n",
"datos = filtrado[columnas_utiles]\n",
"\n",
"# Generate analysis info into html folder\n",
"profile = ProfileReport(datos, title=\"IZQUIERDA Data Profiling Report\", explorative=True)\n",
"report = ProfileReport(\n",
" datos,\n",
" title=\"IZQUIERDA\",\n",
" html={\"style\": {\"full_width\": True}},\n",
" missing_diagrams={\n",
" \"heatmap\": False,\n",
" \"dendrogram\": False,\n",
" \"Count\": False,\n",
" \"bar\": False,\n",
" \"matrix\": False,\n",
" \"sparkline\": False,\n",
" \"table\": False,\n",
" },\n",
" )\n",
"report.to_file(\"iZQUIERDA-Data-Profiling-Report.html\")\n",
"\n"
],
"id": "bf22f3b6e5787d17",
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\lumon\\miniconda3\\Lib\\site-packages\\ydata_profiling\\utils\\dataframe.py:137: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" df.rename(columns={\"index\": \"df_index\"}, inplace=True)\n",
"Summarize dataset: 0%| | 0/21 [00:00<?, ?it/s, Describe variable: EXG Channel 15]\n",
"Summarize dataset: 10%|▉ | 2/21 [00:00<00:06, 3.05it/s, Describe variable: EXG Channel 15]\n",
"100%|██████████| 16/16 [00:00<00:00, 80.77it/s][A\n",
"Summarize dataset: 100%|██████████| 279/279 [00:15<00:00, 17.66it/s, Completed] \n",
"Generate report structure: 100%|██████████| 1/1 [00:02<00:00, 2.37s/it]\n",
"Render HTML: 100%|██████████| 1/1 [00:02<00:00, 2.90s/it]\n",
"Export report to file: 100%|██████████| 1/1 [00:00<00:00, 33.85it/s]\n"
]
}
],
"execution_count": 10
},
{
"metadata": {},
"cell_type": "markdown",
"source": "# TENDENCIA DERECHA\n",
"id": "53c599ddbab9f177"
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-04-24T11:04:31.274873Z",
"start_time": "2025-04-24T11:04:10.826723Z"
}
},
"cell_type": "code",
"source": [
"# Filtrar filas donde la columna 'i' sea igual a 'i'\n",
"filtrado = df[df['Movement'] == 'd']\n",
"\n",
"\n",
"columnas_utiles = [f\"EXG Channel {i}\" for i in range(16)]\n",
"datos = filtrado[columnas_utiles]\n",
"\n",
"\n",
"# Generate analysis info into html folder\n",
"profile = ProfileReport(datos, title=\"DERECHA Data Profiling Report\", explorative=True)\n",
"report = ProfileReport(\n",
" datos,\n",
" title=\"DERECHA Data Profiling Report\",\n",
" html={\"style\": {\"full_width\": True}},\n",
" missing_diagrams={\n",
" \"heatmap\": False,\n",
" \"dendrogram\": False,\n",
" \"Count\": False,\n",
" \"bar\": False,\n",
" \"matrix\": False,\n",
" \"sparkline\": False,\n",
" \"table\": False,\n",
" },\n",
" )\n",
"report.to_file(\"derecha-profiling-report.html\")\n",
"\n",
"\n"
],
"id": "f2cc2b8e7b3d4c8",
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\lumon\\miniconda3\\Lib\\site-packages\\ydata_profiling\\utils\\dataframe.py:137: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" df.rename(columns={\"index\": \"df_index\"}, inplace=True)\n",
"Summarize dataset: 0%| | 0/21 [00:00<?, ?it/s, Describe variable: EXG Channel 15]\n",
"Summarize dataset: 5%|▍ | 1/21 [00:00<00:06, 3.14it/s, Describe variable: EXG Channel 15]\n",
"100%|██████████| 16/16 [00:00<00:00, 155.26it/s]\u001B[A\n",
"Summarize dataset: 100%|██████████| 279/279 [00:14<00:00, 18.78it/s, Completed] \n",
"Generate report structure: 100%|██████████| 1/1 [00:02<00:00, 2.35s/it]\n",
"Render HTML: 100%|██████████| 1/1 [00:02<00:00, 2.90s/it]\n",
"Export report to file: 100%|██████████| 1/1 [00:00<00:00, 35.91it/s]\n"
]
}
],
"execution_count": 11
},
{
"metadata": {},
"cell_type": "markdown",
"source": "# TENDENCIA NONE",
"id": "428b081cbbd88680"
},
{
"metadata": {
"ExecuteTime": {
"end_time": "2025-04-24T11:04:56.000186Z",
"start_time": "2025-04-24T11:04:31.289328Z"
}
},
"cell_type": "code",
"source": [
"# Filtrar filas donde la columna 'i' sea igual a 'i'\n",
"filtrado = df[df['Movement'] == 'none']\n",
"\n",
"\n",
"columnas_utiles = [f\"EXG Channel {i}\" for i in range(16)]\n",
"datos = filtrado[columnas_utiles]\n",
"\n",
"# Generate analysis info into html folder\n",
"profile = ProfileReport(datos, title=\"NONE Data Profiling Report\", explorative=True)\n",
"report = ProfileReport(\n",
" datos,\n",
" title=\"NONE Data Profiling Report\",\n",
" html={\"style\": {\"full_width\": True}},\n",
" missing_diagrams={\n",
" \"heatmap\": False,\n",
" \"dendrogram\": False,\n",
" \"Count\": False,\n",
" \"bar\": False,\n",
" \"matrix\": False,\n",
" \"sparkline\": False,\n",
" \"table\": False,\n",
" },\n",
" )\n",
"report.to_file(\"NONE-Data-Profiling-Report.html\")\n",
"\n"
],
"id": "9b21a5cdae4a8d89",
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\lumon\\miniconda3\\Lib\\site-packages\\ydata_profiling\\utils\\dataframe.py:137: SettingWithCopyWarning: \n",
"A value is trying to be set on a copy of a slice from a DataFrame\n",
"\n",
"See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy\n",
" df.rename(columns={\"index\": \"df_index\"}, inplace=True)\n",
"Summarize dataset: 0%| | 0/21 [00:00<?, ?it/s, Describe variable: EXG Channel 15]\n",
"Summarize dataset: 5%|▍ | 1/21 [00:00<00:09, 2.15it/s, Describe variable: EXG Channel 15]\n",
"100%|██████████| 16/16 [00:00<00:00, 66.99it/s][A\n",
"Summarize dataset: 100%|██████████| 279/279 [00:18<00:00, 14.85it/s, Completed] \n",
"Generate report structure: 100%|██████████| 1/1 [00:02<00:00, 2.50s/it]\n",
"Render HTML: 100%|██████████| 1/1 [00:03<00:00, 3.04s/it]\n",
"Export report to file: 100%|██████████| 1/1 [00:00<00:00, 25.38it/s]\n"
]
}
],
"execution_count": 12
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

File diff suppressed because one or more lines are too long