mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-26 02:43:02 +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}")
|
logger.info(f"Records per file: {args.records_per_file}")
|
||||||
|
|
||||||
if output_mode == MODE_JSONL:
|
if output_mode == MODE_JSONL:
|
||||||
do_jsonl(args, ai, dataset, args.model_code, model_params)
|
do_jsonl(args, ai, dataset, model_params)
|
||||||
else:
|
else:
|
||||||
do_png(args, ai, dataset, args.model_code, model_params)
|
do_png(args, ai, dataset, model_params)
|
||||||
|
|
||||||
sys.stderr.write(">>> Complete\n")
|
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)):
|
if not os.path.exists(os.path.dirname(args.output)):
|
||||||
os.mkdir(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(
|
segmentation_plot(
|
||||||
water_actual, water_predict,
|
water_actual, water_predict,
|
||||||
model_code,
|
args.model_code,
|
||||||
args.output.replace("+d", str(i))
|
args.output.replace("+d", str(i))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue