Skip to content

Commit

Permalink
making all imports absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
beckynevin committed Oct 22, 2024
1 parent 9f35c9d commit aa9a196
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "DeepUQ"
packages = [{include = "*", from="src"}]
packages = [{include = "src"}]
version = "0.1.0"
description = "a package for investigating and comparing the predictive uncertainties from deep learning models"
authors = ["beckynevin <[email protected]>"]
Expand Down
14 changes: 7 additions & 7 deletions src/scripts/DeepEnsemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from torch.utils.data import TensorDataset, DataLoader

# from scripts import train, models, io
from train import train
from models import models
from data import DataModules
from models import ModelModules
from utils.config import Config
from utils.defaults import DefaultsDE
from data.data import DataPreparation, MyDataLoader
from src.train import train
from src.models import models
from src.data import DataModules
from src.models import ModelModules
from src.utils.config import Config
from src.utils.defaults import DefaultsDE
from src.data.data import DataPreparation, MyDataLoader

# from analyze.analyze import AggregateCheckpoints

Expand Down
14 changes: 7 additions & 7 deletions src/scripts/DeepEvidentialRegression.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
from torch.utils.data import TensorDataset, DataLoader

# from scripts import train, models, io
from train import train
from models import models
from data import DataModules
from models import ModelModules
from utils.config import Config
from utils.defaults import DefaultsDER
from data.data import DataPreparation, MyDataLoader
from src.train import train
from src.models import models
from src.data import DataModules
from src.models import ModelModules
from src.utils.config import Config
from src.utils.defaults import DefaultsDER
from src.data.data import DataPreparation, MyDataLoader

# from plots import Plots

Expand Down
2 changes: 1 addition & 1 deletion src/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import glob
import numpy as np
import matplotlib.pyplot as plt
from models import models
from src.models import models


def set_random_seeds(seed_value=42):
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional
import os
import yaml
from utils.defaults import (
from src.utils.defaults import (
DefaultsDE,
DefaultsDER,
DefaultsAnalysis,
Expand Down

0 comments on commit aa9a196

Please sign in to comment.