From 954dfcf9f9dfa40be46dd45bb46b29b59ced9a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Knaebel?= Date: Sat, 5 Aug 2017 09:40:40 +0200 Subject: [PATCH] fix run scripts --- main.py | 3 ++- run.sh | 16 ++++++++-------- test.sh | 16 ++++++++-------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/main.py b/main.py index e2e56da..b1232a6 100644 --- a/main.py +++ b/main.py @@ -238,7 +238,8 @@ def main_visualization(): # "{}/server_cov.png".format(args.model_path), # normalize=False, title="Server Confusion Matrix") logger.info("visualize embedding") - + domain_encs, labels = dataset.load_or_generate_domains(args.test_data, args.domain_length) + domain_embedding = np.load(args.model_path + "/domain_embds.npy") visualize.plot_embedding(domain_embedding, labels, path="{}/embd.png".format(args.model_path)) diff --git a/run.sh b/run.sh index 65778eb..6712c23 100644 --- a/run.sh +++ b/run.sh @@ -2,7 +2,7 @@ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_both \ + --model /tmp/rk/results/small_both \ --epochs 25 \ --embd 64 \ --hidden_chaar_dims 128 \ @@ -13,7 +13,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_client \ + --model /tmp/rk/results/small_client \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ @@ -24,7 +24,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_new_both \ + --model /tmp/rk/results/small_new_both \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ @@ -36,7 +36,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_new_client \ + --model /tmp/rk/results/small_new_client \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ @@ -49,7 +49,7 @@ python main.py --mode train \ ## python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_both \ + --model /tmp/rk/results/medium_both \ --epochs 25 \ --embd 64 \ --hidden_chaar_dims 128 \ @@ -61,7 +61,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_client \ + --model /tmp/rk/results/medium_client \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ @@ -73,7 +73,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_new_both \ + --model /tmp/rk/results/medium_new_both \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ @@ -86,7 +86,7 @@ python main.py --mode train \ python main.py --mode train \ --train /tmp/rk/currentData.csv \ - --model /tmp/rk/results/simple_new_client \ + --model /tmp/rk/results/medium_new_client \ --epochs 25 \ --embd 64 \ --hidden_char_dims 128 \ diff --git a/test.sh b/test.sh index ffe15f7..34f8913 100644 --- a/test.sh +++ b/test.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_both --test /tmp/rk/futureData.csv --model_output both --type paul -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_client --test /tmp/rk/futureData.csv --model_output client --type paul -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_new_both --test /tmp/rk/futureData.csv --model_output both --type paul -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_new_client --test /tmp/rk/futureData.csv --model_output client --type paul +python main.py --mode test --batch 1024 --model /tmp/rk/results/small_both --test /tmp/rk/futureData.csv --model_output both --type paul +python main.py --mode test --batch 1024 --model /tmp/rk/results/small_client --test /tmp/rk/futureData.csv --model_output client --type paul +python main.py --mode test --batch 1024 --model /tmp/rk/results/small_new_both --test /tmp/rk/futureData.csv --model_output both --type paul +python main.py --mode test --batch 1024 --model /tmp/rk/results/small_new_client --test /tmp/rk/futureData.csv --model_output client --type paul -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_both --test /tmp/rk/futureData.csv --model_output both --type rene -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_client --test /tmp/rk/futureData.csv --model_output client --type rene -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_new_both --test /tmp/rk/futureData.csv --model_output both --type rene -python main.py --mode test --batch 1024 --model /tmp/rk/results/simple_new_client --test /tmp/rk/futureData.csv --model_output client --type rene \ No newline at end of file +python main.py --mode test --batch 1024 --model /tmp/rk/results/medium_both --test /tmp/rk/futureData.csv --model_output both --type rene +python main.py --mode test --batch 1024 --model /tmp/rk/results/medium_client --test /tmp/rk/futureData.csv --model_output client --type rene +python main.py --mode test --batch 1024 --model /tmp/rk/results/medium_new_both --test /tmp/rk/futureData.csv --model_output both --type rene +python main.py --mode test --batch 1024 --model /tmp/rk/results/medium_new_client --test /tmp/rk/futureData.csv --model_output client --type rene \ No newline at end of file