DurhamTrees / main_script.py
Ziyuan111's picture
Upload main_script.py
ce2a1d9 verified
raw
history blame
817 Bytes
# -*- coding: utf-8 -*-
"""main_script
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1ZarYcauz1ASn-0JwEBTQtPzwMQ1Qgk41
"""
# main_script.py
from plantsdataset import PlantsDataset
from durhamtrees import DurhamTreesDataset
from datasets import load_dataset
# Load each dataset separately
plants_dataset = PlantsDataset()
durham_trees_dataset = DurhamTreesDataset()
# Optionally, build and prepare the datasets
plants_dataset.download_and_prepare()
durham_trees_dataset.download_and_prepare()
# Now you can work with each dataset as needed
print(plants_dataset)
print(durham_trees_dataset)
# Or, if you want to load them using load_dataset
# dataset = load_dataset("path/to/plantsdataset.py")
# dataset = load_dataset("path/to/durhamtrees.py")