Skip to content

Commit

Permalink
Merge pull request #10 from WenjieDu/dev
Browse files Browse the repository at this point in the history
Add tutorials for US-GAN and GP-VAE, and update README
  • Loading branch information
WenjieDu authored Sep 28, 2023
2 parents 1154438 + 8a9dead commit a7b21c8
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 41 deletions.
13 changes: 7 additions & 6 deletions PyPOTS_Classification.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
],
"source": [
"from pypots.data.generating import gene_physionet2012\n",
"from pypots.utils.random import set_random_seed\n",
"from global_config import RANDOM_SEED\n",
"\n",
"set_random_seed(RANDOM_SEED)\n",
"\n",
"# Load the PhysioNet-2012 dataset, disable artificially-missing values for evaluation\n",
"physionet2012_dataset = gene_physionet2012(artificially_missing_rate=0.1)\n",
Expand Down Expand Up @@ -183,8 +187,7 @@
"PR_AUC: 0.45063928834235356,\n",
"F1: 0.2766990291262136,\n",
"Precision: 0.6404494382022472,\n",
"Recall: 0.17647058823529413,\n",
"\n"
"Recall: 0.17647058823529413,\n"
]
}
],
Expand Down Expand Up @@ -310,8 +313,7 @@
"PR_AUC: 0.45516800127428686,\n",
"F1: 0.1904761904761905,\n",
"Precision: 0.6545454545454545,\n",
"Recall: 0.11145510835913312,\n",
"\n"
"Recall: 0.11145510835913312,\n"
]
}
],
Expand Down Expand Up @@ -435,8 +437,7 @@
"PR_AUC: 0.42444960120448355,\n",
"F1: 0.3355408388520972,\n",
"Precision: 0.5846153846153846,\n",
"Recall: 0.23529411764705882,\n",
"\n"
"Recall: 0.23529411764705882,\n"
]
}
],
Expand Down
10 changes: 6 additions & 4 deletions PyPOTS_Clustering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
],
"source": [
"from pypots.data.generating import gene_physionet2012\n",
"from pypots.utils.random import set_random_seed\n",
"from global_config import RANDOM_SEED\n",
"\n",
"set_random_seed(RANDOM_SEED)\n",
"\n",
"# Load the PhysioNet-2012 dataset, disable artificially-missing values for evaluation\n",
"physionet2012_dataset = gene_physionet2012(artificially_missing_rate=0)\n",
Expand Down Expand Up @@ -179,8 +183,7 @@
"text": [
"Testing clustering metrics: \n",
"RI: 0.7470594150388848, \n",
"CP: 0.8519599666388658\n",
"\n"
"CP: 0.8519599666388658\n"
]
}
],
Expand Down Expand Up @@ -303,8 +306,7 @@
"text": [
"Testing clustering metrics: \n",
"RI: 0.7476464012041741, \n",
"CP: 0.8519599666388658,\n",
"\n"
"CP: 0.8519599666388658,\n"
]
}
],
Expand Down
4 changes: 4 additions & 0 deletions PyPOTS_Forecasting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@
],
"source": [
"from pypots.data.generating import gene_physionet2012\n",
"from pypots.utils.random import set_random_seed\n",
"from global_config import RANDOM_SEED\n",
"\n",
"set_random_seed(RANDOM_SEED)\n",
"\n",
"# Load the PhysioNet-2012 dataset\n",
"physionet2012_dataset = gene_physionet2012()\n",
Expand Down
Loading

0 comments on commit a7b21c8

Please sign in to comment.