Datasets:

Modalities:
Image
Languages:
English
ArXiv:
DOI:
Libraries:
Datasets
License:
kdoherty commited on
Commit
481b541
·
verified ·
1 Parent(s): 20bc6cf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +11 -0
README.md CHANGED
@@ -69,3 +69,14 @@ def preproc_transforms(examples):
69
  ds = ds.map(preproc_transforms, batched=True)
70
  ds['pixel_values'][405]
71
  ```
 
 
 
 
 
 
 
 
 
 
 
 
69
  ds = ds.map(preproc_transforms, batched=True)
70
  ds['pixel_values'][405]
71
  ```
72
+ # Geographic splits within the training set
73
+ ![Geographic clusters](https://huggingface.co/datasets/mpg-ranch/leafy_spurge/resolve/main/doc_figures/train_clusters.png){:height="50%" width="50%"}
74
+
75
+ We gathered ground truth data at multiple sites, and observations within a site were geographically clustered. We suggest using the cluster feature as a means to establish holdout sets for cross-validated hyperparameter tuning. This will simluate model performance when classifying leafy spurge at new sites (such as those of the test set). You can filter by cluster metadata as follows:
76
+
77
+ ```python
78
+ holdout_sets = [[0], [1], [2], [4], [5], [6,7], [8]] #spatial clusters of ground truth define holdout sets; 6 and 7
79
+
80
+ set_0 = ds.filter(lambda example: example['cluster'] in holdout_sets[0])
81
+ set_0['cluster']
82
+ ```