Skip to content

Commit

Permalink
Minor bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbbcbail committed Aug 9, 2024
1 parent 25a7734 commit 58bc24e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Binary file modified data/Fig2&3-objectives/meanBest.pickle
Binary file not shown.
Binary file modified data/Fig2&3-objectives/meanGreedy.pickle
Binary file not shown.
6 changes: 6 additions & 0 deletions data/solverData.csv
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@ Uni-criterion: discreteCoverage,greedySwap,1000,10,10,0.10966670885682106,-53.0
Uni-criterion: clusterCenters,worstOfRandom,1000,2,10,0.029493208974599838,11.847265520187392
Uni-criterion: clusterCenters,bestOfRandom,1000,2,10,0.02857504179701209,2.789513312747127
Uni-criterion: clusterCenters,greedySwap,1000,2,10,0.13878262508660555,0.7724079671652213
"Uni-criterion: preserveMetric, mean",worstOfRandom,1000,10,10,0.02800250006839633,9.50451408816041
"Uni-criterion: preserveMetric, mean",bestOfRandom,1000,10,10,0.02774458285421133,1.4512032863232234
"Uni-criterion: preserveMetric, mean",greedySwap,1000,10,10,0.13165183318778872,0.5215736802170967
"Uni-criterion: preserveMetric, mean",worstOfRandom,1000,10,10,0.031927124597132206,9.503260009237106
"Uni-criterion: preserveMetric, mean",bestOfRandom,1000,10,10,0.027917416766285896,1.460277122561562
"Uni-criterion: preserveMetric, mean",greedySwap,1000,10,10,0.132963459007442,0.5640211475433015
10 changes: 4 additions & 6 deletions jupyter/Fig2&3-objectives.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
"import numpy as np\n",
"import seaborn as sns \n",
"\n",
"from sklearn.cluster import KMeans\n",
"\n",
"# Local\n",
"# Local files\n",
"import flexibleSubsetSelection as fss\n",
"\n",
"# Initialize notebook settings\n",
Expand Down Expand Up @@ -58,11 +56,11 @@
"source": [
"directory = \"Fig2&3-objectives\" # data directory for this notebook\n",
"seed = 123456789 # random seed for replicability\n",
"fss.logger.setup(level=logging.WARNING) # set logging level for the package\n",
"fss.logger.setup(level=logging.DEBUG) # set logging level for the package\n",
"subsetSize = 10 # size of subset selected\n",
"\n",
"firstDataset = fss.Dataset(randTypes=\"multimodal\", size=(1000, 10), seed=seed)\n",
"firstDataset.save(f\"{directory}/firstSetFull\")"
"firstDataset.save(name=\"firstSetFull\", directory=Path(\"..\")/\"data\"/directory)"
]
},
{
Expand Down Expand Up @@ -488,7 +486,7 @@
"subsetSize = 10 # size of subset selected\n",
"\n",
"secondDataset = fss.Dataset(randTypes=\"blobs\", size=(1000, 2), seed=seed)\n",
"secondDataset.save(f\"{directory}/secondSetFull\")"
"secondDataset.save(name=\"secondSetFull\", directory=Path(\"..\")/\"data\"/directory)"
]
},
{
Expand Down

0 comments on commit 58bc24e

Please sign in to comment.