harbor run -t bespokelabs/coreset-selection-group-robust-waterbirdsharbor download bespokelabs/coreset-selection-group-robust-waterbirdsYou're given embeddings for a pool of bird photos, produced once by a frozen image backbone. Each embedding is 512-dimensional. Your job is to pick 240 of these rows to form the training set for a fixed downstream classifier.
The classifier is scored on a held-out evaluation set split into four slices: the two class labels crossed with a binary attribute. That attribute is never disclosed and never labeled anywhere in the material you're given.
| path | contents |
|---|---|
/app/data/dev_pool_features.npy |
float32, shape (2397, 512), development pool embeddings, not L2-normalized |
/app/data/dev_pool_labels.npy |
int64 in {0, 1}, shape (2397,), row-aligned to the features |
/app/data/dev_draws.npy |
int64, shape (4, 2038), four subsamples of the development pool, drawn by the same stratified procedure used for the pools you'll be graded on |
These files are read-only. You may only write to /app/output/.
Write /app/output/selector.py, with exactly one entry point:
def select_coreset(features, labels, budget, seed):
...
Contract:
features: float32 array of shape (N, 512), embeddings of a graded pool you've never
seen, from the same backbone as the development pool. N is roughly 2000.labels: int64 array of shape (N,), values in {0, 1}, row-aligned to features.budget: int, always 240.seed: int, yours to use for any randomness of your own.int64 array of shape (240,) with unique indices in [0, N), of which
exactly 120 have label 0 and exactly 120 have label 1.Helper modules can live beside selector.py in /app/output/. Everything in that directory
travels with the entry point at grading time, so anything your entry point loads at call time
needs to be there too.
OMP_NUM_THREADS=1, on a machine with 8 CPUs, 14336 MB of memory, and 0 GPUs.numpy, scipy, scikit-learn. Nothing else is added at grading time./app/output/selector.py also scores zero for the whole
submission.You cannot change it, and it is not shipped to you. On each graded pool draw, it:
1e-6 to 1e-6 before dividing.0.01, biases starting
at zero.