Skip to content

Commit

Permalink
added noisy plots to notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chr-peters committed Jun 8, 2021
1 parent e9b0bdd commit 32163b8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
13 changes: 12 additions & 1 deletion notebooks/ratio_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"outputs": [],
"source": [
"from sketching import settings\n",
"from sketching.datasets import Dataset, Covertype_Sklearn, KDDCup_Sklearn, Webspam_libsvm, Synthetic_Dataset\n",
"from sketching.datasets import Dataset, Covertype_Sklearn, KDDCup_Sklearn, Webspam_libsvm, Synthetic_Dataset, NoisyDataset\n",
"\n",
"import pandas as pd\n",
"\n",
Expand Down Expand Up @@ -91,6 +91,7 @@
" \"covertype_sklearn\": \"Covertype\",\n",
" \"kddcup_sklearn\": \"Kddcup\",\n",
" \"webspam_libsvm_desparsed\": \"Webspam\",\n",
" \"webspam_libsvm_desparsed_noisy\": \"Webspam, 1\\% noisy\",\n",
" \"synthetic_n_100000\": \"Synthetic\"\n",
" }\n",
"\n",
Expand Down Expand Up @@ -163,6 +164,16 @@
"dataset = Synthetic_Dataset(n_rows=100000)\n",
"make_plot(dataset, x_min=0, x_max=3000, y_min=1, y_max=35)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"dataset = NoisyDataset(dataset=Webspam_libsvm(), percentage=0.01, std=10)\n",
"make_plot(dataset, x_min=0, x_max=15000, y_min=1, y_max=10)"
]
}
],
"metadata": {
Expand Down
14 changes: 13 additions & 1 deletion notebooks/runtime_plots.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"outputs": [],
"source": [
"from sketching import settings\n",
"from sketching.datasets import Dataset, Covertype_Sklearn, KDDCup_Sklearn, Webspam_libsvm, Synthetic_Dataset\n",
"from sketching.datasets import Dataset, Covertype_Sklearn, KDDCup_Sklearn, Webspam_libsvm, Synthetic_Dataset, NoisyDataset\n",
"\n",
"import pandas as pd\n",
"\n",
Expand Down Expand Up @@ -88,6 +88,7 @@
" \"covertype_sklearn\": \"Covertype\",\n",
" \"kddcup_sklearn\": \"Kddcup\",\n",
" \"webspam_libsvm_desparsed\": \"Webspam\",\n",
" \"webspam_libsvm_desparsed_noisy\": \"Webspam, 1\\% noisy\",\n",
" \"synthetic_n_100000\": \"Synthetic\"\n",
" }\n",
"\n",
Expand Down Expand Up @@ -167,6 +168,17 @@
"make_plot(dataset, x_min=None, x_max=None, y_min=None, y_max=None, sampling_time=False)\n",
"make_plot(dataset, x_min=None, x_max=None, y_min=None, y_max=None, sampling_time=True)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"dataset = NoisyDataset(dataset=Webspam_libsvm(), percentage=0.01, std=10)\n",
"make_plot(dataset, x_min=None, x_max=None, y_min=1, y_max=2, sampling_time=False)\n",
"make_plot(dataset, x_min=None, x_max=None, y_min=1, y_max=2, sampling_time=True)"
]
}
],
"metadata": {
Expand Down

0 comments on commit 32163b8

Please sign in to comment.