Skip to content

Commit

Permalink
SLEEP ANALYSIS USING ALL FEATURES
Browse files Browse the repository at this point in the history
building machine learning models using all features of the datasets
  • Loading branch information
s222181037 committed Sep 30, 2024
1 parent 1ccce7d commit 5b5c6e2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@
],
"source": [
"# GitHub link for the Excel file\n",
"url = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingStatisticalFeatures.xlsx\"\n",
"URL = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingStatisticalFeatures.xlsx\"\n",
"\n",
"# Reading the Excel file using the raw content link\n",
"STATISTICAL_FEATURES = pd.read_excel(url, engine='openpyxl')\n",
"STATISTICAL_FEATURES = pd.read_excel(URL, engine='openpyxl')\n",
"\n",
"# Displaying the first few rows and the info of the dataset\n",
"display(STATISTICAL_FEATURES.head())\n",
"STATISTICAL_FEATURES.info()\n"
"STATISTICAL_FEATURES.info()"
]
},
{
Expand Down Expand Up @@ -597,10 +597,10 @@
],
"source": [
"# GitHub link for the Excel file\n",
"url = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingCardioRespiratoryFeatures.xlsx\"\n",
"URL = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingCardioRespiratoryFeatures.xlsx\"\n",
"\n",
"# Reading the Excel file using the raw content link\n",
"CARDIO_RESPIRATORY_FEATURES = pd.read_excel(url, engine='openpyxl')\n",
"CARDIO_RESPIRATORY_FEATURES = pd.read_excel(URL, engine='openpyxl')\n",
"\n",
"# Displaying the first few rows and the info of the dataset\n",
"display(CARDIO_RESPIRATORY_FEATURES.head())\n",
Expand Down Expand Up @@ -868,10 +868,10 @@
],
"source": [
"# GitHub link for the Excel file\n",
"url = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingArterialFeatures.xlsx\"\n",
"URL = \"https://raw.githubusercontent.com/Redback-Operations/redback-senior-tech/main/data_science/sleep_disorder_prediction/data/SleepStagingArterialFeatures.xlsx\"\n",
"\n",
"# Reading the Excel file using the raw content link\n",
"ARTERIAL_FEATURES = pd.read_excel(url, engine='openpyxl')\n",
"ARTERIAL_FEATURES = pd.read_excel(URL, engine='openpyxl')\n",
"\n",
"# Displaying the first few rows and the info of the dataset\n",
"display(ARTERIAL_FEATURES.head())\n",
Expand Down Expand Up @@ -2301,7 +2301,7 @@
{
"data": {
"text/plain": [
"' precision recall f1-score support\\n\\n 1 0.50 0.27 0.35 233\\n 2 0.58 0.71 0.63 529\\n 3 0.65 0.43 0.52 223\\n 4 0.70 0.57 0.63 77\\n 5 0.81 0.48 0.61 163\\n 6 0.72 0.88 0.79 661\\n\\n accuracy 0.66 1886\\n macro avg 0.66 0.56 0.59 1886\\nweighted avg 0.65 0.66 0.64 1886\\n'"
"' precision recall f1-score support\\n\\n 1 0.46 0.26 0.33 233\\n 2 0.58 0.70 0.64 529\\n 3 0.64 0.43 0.51 223\\n 4 0.68 0.56 0.61 77\\n 5 0.78 0.49 0.60 163\\n 6 0.73 0.88 0.80 661\\n\\n accuracy 0.65 1886\\n macro avg 0.65 0.55 0.58 1886\\nweighted avg 0.65 0.65 0.64 1886\\n'"
]
},
"execution_count": 19,
Expand Down

0 comments on commit 5b5c6e2

Please sign in to comment.