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 glob import glob | |
import os | |
import matplotlib.pyplot as plt | |
import torch | |
from denoising_diffusion_pytorch import Unet | |
from denoising_diffusion_pytorch.repaint import GaussianDiffusion as RePaint | |
from PIL import Image | |
from torch.utils.data import DataLoader | |
from torchvision.datasets import VisionDataset |
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 typing import Any | |
import deepsensor.torch | |
import numpy as np | |
import xarray as xr | |
from deepsensor.data.loader import TaskLoader | |
from deepsensor.data.processor import DataProcessor | |
from deepsensor.train import Trainer | |
from hydra.utils import instantiate | |
from omegaconf import DictConfig, OmegaConf |
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
import os | |
from functools import lru_cache | |
from typing import Any, Dict, Optional | |
import kornia.augmentation as K | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import pandas as pd | |
import timm | |
import torch |
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
"""Ocean Bench Datamodules.""" | |
import itertools | |
import os | |
from collections import namedtuple | |
from typing import Any | |
import hydra | |
import numpy as np | |
import ocn_tools._src.geoprocessing.gridding as obgrid |
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
import os | |
from typing import Sequence | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import torch | |
import torch.backends.cudnn as cudnn | |
from lightning import Trainer | |
from lightning.pytorch import seed_everything | |
from orig_conformal import ConformalModel |
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
import requests | |
# Set up authentication with your PAT | |
headers = { | |
'Authorization': 'Bearer YOUR_ACCESS_TOKEN' | |
} | |
# Define the repository information | |
repo_owner = 'repo_owner' | |
repo_name = 'repo_name' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import torch | |
import timm | |
from torchgeo.datasets import EuroSAT | |
import numpy as np | |
from sklearn.linear_model import LogisticRegression | |
from torch.utils.data import DataLoader | |
import torch | |
from tqdm import tqdm |
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
import numpy as np | |
import pandas as pd | |
from darts import TimeSeries | |
from darts.dataprocessing.transformers import Scaler | |
from darts.models import TFTModel | |
from darts.datasets import AirPassengersDataset | |
from darts.utils.timeseries_generation import datetime_attribute_timeseries | |
from darts.utils.likelihood_models import QuantileRegression | |
import pytorch_lightning as pl |
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
import numpy as np | |
import pandas as pd | |
from tqdm import tqdm_notebook as tqdm | |
import matplotlib.pyplot as plt | |
from darts import TimeSeries, concatenate | |
from darts.dataprocessing.transformers import Scaler | |
from darts.models import TFTModel | |
from darts.metrics import mape |
NewerOlder