mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +00:00
pretrain-plot: fix crash; remove water code
the model doesn't save the water encoder at this time
This commit is contained in:
parent
a5f03390ef
commit
b31645bd5d
1 changed files with 9 additions and 9 deletions
|
@ -39,19 +39,19 @@ def run(args):
|
|||
with handle_open(filepath_input, "r") as handle:
|
||||
for line in handle:
|
||||
obj = json.loads(line)
|
||||
embeddings.append(obj["rainfall"])
|
||||
embeddings.append(obj)
|
||||
|
||||
logger.info(">>> Plotting rainfall with UMAP\n")
|
||||
vis_embeddings(filepath_output_rainfall, np.array(embeddings))
|
||||
|
||||
# the model doesn't save the water encoder at this time
|
||||
# embeddings = []
|
||||
# with handle_open(filepath_input, "r") as handle:
|
||||
# for line in handle:
|
||||
# obj = json.loads(line)
|
||||
# embeddings.append(obj["water"])
|
||||
|
||||
embeddings = []
|
||||
with handle_open(filepath_input, "r") as handle:
|
||||
for line in handle:
|
||||
obj = json.loads(line)
|
||||
embeddings.append(obj["water"])
|
||||
|
||||
logger.info(">>> Plotting water with UMAP\n")
|
||||
vis_embeddings(filepath_output_water, np.array(embeddings))
|
||||
# logger.info(">>> Plotting water with UMAP\n")
|
||||
# vis_embeddings(filepath_output_water, np.array(embeddings))
|
||||
|
||||
sys.stderr.write(">>> Complete\n")
|
Loading…
Reference in a new issue