Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions collect_seed_metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import os

CUR_FPATH = os.path.abspath(__file__)
CUR_FDIR = os.path.dirname(CUR_FPATH)

# chdir to the directory of this script
os.chdir(CUR_FDIR)

import requests
import numpy as np
import json
Expand Down
8 changes: 8 additions & 0 deletions proxy_env2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import os

CUR_FPATH = os.path.abspath(__file__)
CUR_FDIR = os.path.dirname(CUR_FPATH)

# chdir to the directory of this script
os.chdir(CUR_FDIR)

import requests
import numpy as np
import json
Expand Down
8 changes: 8 additions & 0 deletions run_different_req_freq.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
import os

CUR_FPATH = os.path.abspath(__file__)
CUR_FDIR = os.path.dirname(CUR_FPATH)

# chdir to the directory of this script
os.chdir(CUR_FDIR)

req_freqs=["low","middle","high"]

import threading
Expand Down
9 changes: 9 additions & 0 deletions run_multi_fn_dag.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
import os

CUR_FPATH = os.path.abspath(__file__)
CUR_FDIR = os.path.dirname(CUR_FPATH)

# chdir to the directory of this script
os.chdir(CUR_FDIR)


from proxy_env2 import ProxyEnv2
import threading
dag_types = ["dag"]
Expand Down
8 changes: 8 additions & 0 deletions run_ppo.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
From the paper "Proximal Policy Optimization Algorithms"
https://arxiv.org/abs/1707.06347.
"""
import os

CUR_FPATH = os.path.abspath(__file__)
CUR_FDIR = os.path.dirname(CUR_FPATH)

# chdir to the directory of this script
os.chdir(CUR_FDIR)

from proxy_env2 import ProxyEnv2
from deep_rl_zoo import greedy_actors
from deep_rl_zoo import gym_env
Expand Down