This commit is contained in:
D-X-Y 2021-05-25 20:24:41 -07:00
parent 9057011781
commit 50f4f3dda7
3 changed files with 5 additions and 2 deletions

View File

@ -10,5 +10,5 @@ cp ${script_dir}/bashrc ~/.bashrc
cp ${script_dir}/condarc ~/.condarc
wget https://repo.anaconda.com/miniconda/Miniconda3-4.7.12.1-Linux-x86_64.sh
wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh

View File

@ -28,7 +28,9 @@ class FitFunc(abc.ABC):
self._params = copy.deepcopy(params)
def check_valid(self):
for key, value in self._params.items():
# for key, value in self._params.items():
for key in range(self._freedom):
value = self._params[key]
if value is None:
raise ValueError("The {:} is None".format(key))

View File

@ -44,6 +44,7 @@ def get_synthetic_env(total_timestamp=1600, num_per_task=1000, mode=None, versio
params={
0: LinearFunc(params={0: 0.1, 1: 0}), # 0.1 * t
1: SinFunc(params={0: 1, 1: 1, 2: 0}), # sin(t)
2: ConstantFunc(0),
}
)
dynamic_env = SyntheticDEnv(