Skip to content

Commit

Permalink
Fixes #7 and #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Hundman committed Aug 30, 2018
1 parent 90e0a7b commit 5e87347
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 484,274 deletions.
10 changes: 5 additions & 5 deletions labeled_anomalies.csv
Expand Up @@ -35,12 +35,12 @@ G-3,SMAP,"[[3950,4000]]",[point],7907
T-1,SMAP,"[[2149, 3648], [6300,6335]]","[point, contextual]",8612
T-2,SMAP,"[[6590, 8387]]",[point],8625
D-8,SMAP,"[[4120, 4170]]",[point],7874
D-9,SMAP,"[[6000, 7406]]",[point],7406
F-2,SMAP,"[[5419, 8626]]",[point],8626
D-9,SMAP,"[[6000, 7405]]",[point],7406
F-2,SMAP,"[[5419, 8625]]",[point],8626
G-4,SMAP,"[[4440, 4470]]",[point],7632
T-3,SMAP,"[[1848,1930],[4950,5050]]","[point, point]",8579
D-11,SMAP,"[[4020, 4080]]",[point],7431
D-12,SMAP,"[[4928, 8467]]",[point],7918
D-12,SMAP,"[[4928, 7917]]",[point],7918
B-1,SMAP,"[[4810, 4880]]",[point],8044
G-6,SMAP,"[[5350, 5450]]",[point],8640
G-7,SMAP,"[[3400, 3500], [4800,4850], [7310, 7425]]","[contextual, point, contextual]",8029
Expand All @@ -51,8 +51,8 @@ A-6,SMAP,"[[1640, 1680]]",[point],4453
A-7,SMAP,"[[5950, 8350]]",[contextual],8631
D-13,SMAP,"[[4820, 4980]]",[point],7663
P-2,SMAP,"[[5050, 6170]]",[point],8209
A-8,SMAP,"[[4319, 8375]]",[contextual],8375
A-9,SMAP,"[[4319, 8434]]",[contextual],8434
A-8,SMAP,"[[4319, 8374]]",[contextual],8375
A-9,SMAP,"[[4319, 8433]]",[contextual],8434
F-3,SMAP,"[[5350, 5390]]",[contextual],8376
M-6,MSL,"[[1600, 1780]]",[point],2049
M-1,MSL,"[[860, 2000]]",[contextual],2277
Expand Down
484,268 changes: 0 additions & 484,268 deletions results/.ipynb_checkpoints/result-viewer-checkpoint.ipynb

This file was deleted.

2 changes: 1 addition & 1 deletion telemanom/modeling.py
Expand Up @@ -25,7 +25,7 @@ def get_model(anom, X_train, y_train, logger, train=False):
model (obj): Trained Keras LSTM model
'''

if not train and os.path.exists(os.path.join("data", "models", anom["chan_id"] + ".h5")):
if not train and os.path.exists(os.path.join("data", config.use_id, "models", anom["chan_id"] + ".h5")):
logger.info("Loading pre-trained model")
return load_model(os.path.join("data", config.use_id, "models", anom["chan_id"] + ".h5"))

Expand Down

0 comments on commit 5e87347

Please sign in to comment.