MarkusStoll commited on
Commit
81ad4a3
1 Parent(s): 713f16f

Update prepare.py

Browse files
Files changed (1) hide show
  1. prepare.py +1 -1
prepare.py CHANGED
@@ -19,7 +19,7 @@ if __name__ == "__main__":
19
  df = ds.rename_columns({"img": "image", "label": "labels"}).to_pandas()
20
  df["label_str"] = df["labels"].apply(lambda x: ds.features["label"].int2str(x))
21
 
22
- # df = df[:1000]
23
 
24
  # precalculate umap embeddings
25
  df["embedding_ft_precalc"] = umap.UMAP(
 
19
  df = ds.rename_columns({"img": "image", "label": "labels"}).to_pandas()
20
  df["label_str"] = df["labels"].apply(lambda x: ds.features["label"].int2str(x))
21
 
22
+ df = df.sample(10000, random_state=42).reset_index(drop=True)
23
 
24
  # precalculate umap embeddings
25
  df["embedding_ft_precalc"] = umap.UMAP(