mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
train_predict: don't pass model_code
it's redundant
This commit is contained in:
parent
1b489518d0
commit
4f9d543695
1 changed files with 4 additions and 4 deletions
|
@ -87,13 +87,13 @@ def run(args):
|
|||
logger.info(f"Records per file: {args.records_per_file}")
|
||||
|
||||
if output_mode == MODE_JSONL:
|
||||
do_jsonl(args, ai, dataset, args.model_code, model_params)
|
||||
do_jsonl(args, ai, dataset, model_params)
|
||||
else:
|
||||
do_png(args, ai, dataset, args.model_code, model_params)
|
||||
do_png(args, ai, dataset, model_params)
|
||||
|
||||
sys.stderr.write(">>> Complete\n")
|
||||
|
||||
def do_png(args, ai, dataset, model_code, model_params):
|
||||
def do_png(args, ai, dataset, model_params):
|
||||
if not os.path.exists(os.path.dirname(args.output)):
|
||||
os.mkdir(os.path.dirname(args.output))
|
||||
|
||||
|
@ -114,7 +114,7 @@ def do_png(args, ai, dataset, model_code, model_params):
|
|||
|
||||
segmentation_plot(
|
||||
water_actual, water_predict,
|
||||
model_code,
|
||||
args.model_code,
|
||||
args.output.replace("+d", str(i))
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue