Skip to content

Commit

Permalink
Merge pull request #58 from berenslab/frameworks
Browse files Browse the repository at this point in the history
Frameworks II: The aftermath
  • Loading branch information
alex404 authored Oct 30, 2024
2 parents 70d0b25 + b0a3661 commit c4d0014
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
from hydra.utils import instantiate
from omegaconf import DictConfig, OmegaConf

from retinal_rl.framework_interface import TrainingFramework
from retinal_rl.rl.sample_factory.sf_framework import SFFramework
from runner.classification.classification_framework import ClassificationFramework
from runner.frameworks.classification.classification_framework import (
ClassificationFramework,
)
from runner.frameworks.framework_interface import TrainingFramework
from runner.frameworks.rl.sf_framework import SFFramework
from runner.sweep import launch_sweep
from runner.util import create_brain, delete_results

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import torch
from omegaconf import DictConfig

from retinal_rl.framework_interface import TrainingFramework
from retinal_rl.models.brain import Brain
from retinal_rl.models.loss import ContextT
from retinal_rl.models.objective import Objective
from runner.classification.analyze import analyze
from runner.classification.dataset import get_datasets
from runner.classification.initialize import initialize
from runner.classification.train import train
from runner.frameworks.classification.analyze import analyze
from runner.frameworks.classification.dataset import get_datasets
from runner.frameworks.classification.initialize import initialize
from runner.frameworks.classification.train import train
from runner.frameworks.framework_interface import TrainingFramework


class ClassificationFramework(TrainingFramework):
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from retinal_rl.classification.training import process_dataset, run_epoch
from retinal_rl.models.brain import Brain
from retinal_rl.models.objective import Objective
from runner.classification.analyze import analyze
from runner.frameworks.classification.analyze import analyze
from runner.util import save_checkpoint

# Initialize the logger
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from sample_factory.utils.attr_dict import AttrDict
from sample_factory.utils.typing import Config

from retinal_rl.framework_interface import TrainingFramework
from retinal_rl.models.brain import Brain
from retinal_rl.models.loss import ContextT
from retinal_rl.models.objective import Objective
Expand All @@ -33,6 +32,7 @@
)
from retinal_rl.rl.sample_factory.environment import register_retinal_env
from retinal_rl.rl.sample_factory.models import SampleFactoryBrain
from runner.frameworks.framework_interface import TrainingFramework
from runner.util import create_brain


Expand Down
2 changes: 1 addition & 1 deletion tests/ci/changed_py_files.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

echo $(git diff --name-only origin/master...HEAD -- '*.py')
echo $(git diff --name-only --diff-filter=d origin/master...HEAD -- '*.py')

0 comments on commit c4d0014

Please sign in to comment.