mirror of
https://github.com/wassname/DeepTime.git
synced 2026-08-03 12:30:17 +08:00
try with stock data
This commit is contained in:
+6
-3
@@ -62,9 +62,12 @@ class Experiment(ABC):
|
||||
# write command file
|
||||
command_file = os.path.join(instance_path, 'command')
|
||||
with open(command_file, 'w') as cmd:
|
||||
# cmd.write(f'python -m {module} '
|
||||
# f'--config_path={instance_config_path} '
|
||||
# f'run >> {instance_path}/instance.log 2>&1')
|
||||
cmd.write(f'python -m {module} '
|
||||
f'--config_path={instance_config_path} '
|
||||
f'run >> {instance_path}/instance.log 2>&1')
|
||||
f'--config_path={instance_config_path} '
|
||||
f'run 2>&1 | tee -a {instance_path}/instance.log')
|
||||
|
||||
@abstractmethod
|
||||
def instance(self):
|
||||
@@ -102,4 +105,4 @@ class Experiment(ABC):
|
||||
def build_experiment(self):
|
||||
if EXPERIMENTS_PATH in str(self.root):
|
||||
raise Exception('Cannot build ensemble from ensemble member configuration.')
|
||||
self.build()
|
||||
self.build()
|
||||
|
||||
Reference in New Issue
Block a user