Ziyuan111 commited on
Commit
ce2a1d9
1 Parent(s): afc93ac

Upload main_script.py

Browse files
Files changed (1) hide show
  1. main_script.py +30 -0
main_script.py ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # -*- coding: utf-8 -*-
2
+ """main_script
3
+
4
+ Automatically generated by Colaboratory.
5
+
6
+ Original file is located at
7
+ https://colab.research.google.com/drive/1ZarYcauz1ASn-0JwEBTQtPzwMQ1Qgk41
8
+ """
9
+
10
+ # main_script.py
11
+
12
+ from plantsdataset import PlantsDataset
13
+ from durhamtrees import DurhamTreesDataset
14
+ from datasets import load_dataset
15
+
16
+ # Load each dataset separately
17
+ plants_dataset = PlantsDataset()
18
+ durham_trees_dataset = DurhamTreesDataset()
19
+
20
+ # Optionally, build and prepare the datasets
21
+ plants_dataset.download_and_prepare()
22
+ durham_trees_dataset.download_and_prepare()
23
+
24
+ # Now you can work with each dataset as needed
25
+ print(plants_dataset)
26
+ print(durham_trees_dataset)
27
+
28
+ # Or, if you want to load them using load_dataset
29
+ # dataset = load_dataset("path/to/plantsdataset.py")
30
+ # dataset = load_dataset("path/to/durhamtrees.py")