mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 18:33:01 +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:
|
with handle_open(filepath_input, "r") as handle:
|
||||||
for line in handle:
|
for line in handle:
|
||||||
obj = json.loads(line)
|
obj = json.loads(line)
|
||||||
embeddings.append(obj["rainfall"])
|
embeddings.append(obj)
|
||||||
|
|
||||||
logger.info(">>> Plotting rainfall with UMAP\n")
|
logger.info(">>> Plotting rainfall with UMAP\n")
|
||||||
vis_embeddings(filepath_output_rainfall, np.array(embeddings))
|
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 = []
|
# logger.info(">>> Plotting water with UMAP\n")
|
||||||
with handle_open(filepath_input, "r") as handle:
|
# vis_embeddings(filepath_output_water, np.array(embeddings))
|
||||||
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))
|
|
||||||
|
|
||||||
sys.stderr.write(">>> Complete\n")
|
sys.stderr.write(">>> Complete\n")
|
Loading…
Reference in a new issue