Datasets:
Upload README.md with huggingface_hub
Browse files
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 |
+
{: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 |
+
```
|