-
Notifications
You must be signed in to change notification settings - Fork 1
/
ref.py
31 lines (31 loc) · 1.72 KB
/
ref.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import ray.rllib.algorithms.callbacks
import ray.rllib.algorithms.maddpg.maddpg
import ray.rllib.examples.centralized_critic
import ray.rllib.examples.centralized_critic_2
import ray.rllib.policy.torch_policy_v2
import ray.rllib.utils.exploration.epsilon_greedy
import ray.rllib.utils.exploration.stochastic_sampling
from gymnasium.vector.utils import concatenate
from pettingzoo.butterfly import cooperative_pong_v4
from ray import air, tune
from ray.rllib.agents.maddpg import MADDPGTFPolicy, MADDPGTrainer
from ray.rllib.algorithms.a3c import a3c_torch_policy
from ray.rllib.algorithms.apex_dqn import ApexDQNConfig
from ray.rllib.algorithms.maddpg import MADDPG
from ray.rllib.algorithms.pg import pg
from ray.rllib.algorithms.ppo import ppo
from ray.rllib.evaluation.rollout_worker import RolloutWorker
from ray.rllib.evaluation.sampler import SamplerInput
from ray.rllib.evaluation.worker_set import WorkerSet
from ray.rllib.examples.env.two_step_game import TwoStepGame
from ray.rllib.examples.models.centralized_critic_models import (CentralizedCriticModel, TorchCentralizedCriticModel)
from ray.rllib.models import ModelCatalog
from ray.rllib.models.torch import torch_modelv2
from ray.rllib.models.torch.attention_net import AttentionWrapper
from ray.rllib.offline import (D4RLReader, DatasetReader, DatasetWriter, InputReader, IOContext, JsonReader, JsonWriter, MixedInput, NoopOutput, OutputWriter, ShuffledInput)
from ray.rllib.policy.sample_batch import (concat_samples, concat_samples_into_ma_batch)
from ray.tune.registry import get_trainable_cls
import ray.rllib.evaluation.sampler
from ray.rllib.models.torch.fcnet import FullyConnectedNetwork
from ray.rllib.models.torch.visionnet import VisionNetwork
from supersuit import normalize_obs_v0