Resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from climate_learn.data.climate_dataset.args import ERA5Args | |
from climate_learn.data.task.args import ForecastingArgs | |
from climate_learn.data.dataset import MapDatasetArgs | |
from climate_learn.data import DataModule | |
from climate_learn.models import load_model, set_climatology | |
from climate_learn.training import Trainer | |
import torch | |
# Load the data | |
ROOT_DIR = "/path/to/your/data" # CHANGE ME! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I forgot why I wanted to do this in the first place, but just in case I ever | |
# need to do something like this again, I'm documenting this horrifying code. | |
class Cell: | |
""" Container class """ | |
def __init__(self, capacity): | |
self.data = [None] * capacity | |
def __getitem__(self, idx): | |
return self.data[idx] |