Skip to content

Commit

Permalink
Merge pull request #10 from CLAIR-LAB-TECHNION/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
itaysegev authored Jul 15, 2024
2 parents 41fd5cb + 3a5b028 commit 4461baf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
10 changes: 0 additions & 10 deletions tutorials/dqn_tutorial/dqn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
from dqn_tutorial.dqn.collect_data import collect_one_step, epsilon_greedy_action_selection, linear_schedule
from dqn_tutorial.dqn.q_network import QNetwork
from dqn_tutorial.dqn.replay_buffer import ReplayBuffer

__all__ = [
"QNetwork",
"ReplayBuffer",
"collect_one_step",
"linear_schedule",
"epsilon_greedy_action_selection",
]
4 changes: 2 additions & 2 deletions tutorials/dqn_tutorial/dqn/collect_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import torch as th
from gymnasium import spaces

from dqn_tutorial.dqn.q_network import QNetwork
from dqn_tutorial.dqn.replay_buffer import ReplayBuffer
from dqn.q_network import QNetwork
from dqn.replay_buffer import ReplayBuffer


def epsilon_greedy_action_selection(
Expand Down
4 changes: 2 additions & 2 deletions tutorials/dqn_tutorial/dqn/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from gymnasium import spaces
from gymnasium.wrappers.monitoring.video_recorder import VideoRecorder

from dqn_tutorial.dqn.collect_data import epsilon_greedy_action_selection
from dqn_tutorial.dqn.q_network import QNetwork
from dqn.collect_data import epsilon_greedy_action_selection
from dqn.q_network import QNetwork


def evaluate_policy(
Expand Down
10 changes: 0 additions & 10 deletions tutorials/dqn_tutorial/fqi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
from dqn_tutorial.fqi.collect_data import collect_data, load_data, save_data
from dqn_tutorial.fqi.fqi import create_model_input, evaluate, get_q_values

__all__ = [
"collect_data",
"load_data",
"save_data",
"create_model_input",
"evaluate",
"get_q_values",
]

0 comments on commit 4461baf

Please sign in to comment.