|
|
@@ -52,7 +52,7 @@ def create_prediction(
|
|
|
|
|
|
cmd = [
|
|
|
sys.executable,
|
|
|
- config['model']['short_algorithm_file'],
|
|
|
+ os.path.join(BASE_DIR, "medium_short_term", "scripts", "prediction_short.py"),
|
|
|
"--projs", projs ,
|
|
|
"--model_name", 'GRU',
|
|
|
"--release", 'v24',
|
|
|
@@ -61,7 +61,7 @@ def create_prediction(
|
|
|
"--short_term_seq", "288",
|
|
|
"--medium_term_seq", "960",
|
|
|
"--capacity", str(PROJECT_DEFAULTS[f'{projs}']['capacity']),
|
|
|
- "--saved_model_root", config['model']['saved_model_root'],
|
|
|
+ "--saved_model_root", os.path.join(BASE_DIR,"medium_short_term","saved_model"),
|
|
|
"--saved_result_root", "-",
|
|
|
"--init_time", init_time,
|
|
|
]
|
|
|
@@ -105,7 +105,7 @@ def create_prediction(
|
|
|
|
|
|
cmd = [
|
|
|
sys.executable,
|
|
|
- config['model']['medium_algorithm_file'],
|
|
|
+ os.path.join(BASE_DIR, "medium_short_term", "scripts", "prediction_medium.py"),
|
|
|
"--projs", projs ,
|
|
|
"--model_name", 'GRU',
|
|
|
"--release", 'v24',
|
|
|
@@ -114,7 +114,7 @@ def create_prediction(
|
|
|
"--short_term_seq", "288",
|
|
|
"--medium_term_seq", "960",
|
|
|
"--capacity", str(PROJECT_DEFAULTS[f'{projs}']['capacity']),
|
|
|
- "--saved_model_root", config['model']['saved_model_root'],
|
|
|
+ "--saved_model_root", os.path.join(BASE_DIR,"medium_short_term","saved_model"),
|
|
|
"--saved_result_root", "-",
|
|
|
"--init_time", init_time,
|
|
|
]
|