Fix bugs
This commit is contained in:
		| @@ -10,5 +10,5 @@ cp ${script_dir}/bashrc ~/.bashrc | |||||||
| cp ${script_dir}/condarc ~/.condarc | 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/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/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||||||
|  | wget https://repo.anaconda.com/archive/Anaconda3-2021.05-Linux-x86_64.sh | ||||||
|   | |||||||
| @@ -28,7 +28,9 @@ class FitFunc(abc.ABC): | |||||||
|         self._params = copy.deepcopy(params) |         self._params = copy.deepcopy(params) | ||||||
|  |  | ||||||
|     def check_valid(self): |     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: |             if value is None: | ||||||
|                 raise ValueError("The {:} is None".format(key)) |                 raise ValueError("The {:} is None".format(key)) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -44,6 +44,7 @@ def get_synthetic_env(total_timestamp=1600, num_per_task=1000, mode=None, versio | |||||||
|             params={ |             params={ | ||||||
|                 0: LinearFunc(params={0: 0.1, 1: 0}),  # 0.1 * t |                 0: LinearFunc(params={0: 0.1, 1: 0}),  # 0.1 * t | ||||||
|                 1: SinFunc(params={0: 1, 1: 1, 2: 0}),  # sin(t) |                 1: SinFunc(params={0: 1, 1: 1, 2: 0}),  # sin(t) | ||||||
|  |                 2: ConstantFunc(0), | ||||||
|             } |             } | ||||||
|         ) |         ) | ||||||
|         dynamic_env = SyntheticDEnv( |         dynamic_env = SyntheticDEnv( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user