Skip to content

Commit

Permalink
Trained MD model for deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ShawnHymel committed May 8, 2020
1 parent 9fb6524 commit fab0d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mahalanobis_distance/http_server_anomaly_detection_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# Settings
DEFUALT_PORT = 1337
MODELS_PATH = 'models'
MD_MODEL_FILE = 'md_model_test_01' # .npz will be added
MD_MODEL_FILE = 'md_model_test-deploy' # .npz will be added
MAX_MEASUREMENTS = 128 # Truncate measurements to this number
ANOMALY_THRESHOLD = 14.0 # An MD over this will be considered an anomaly
ANOMALY_THRESHOLD = 9.0 # An MD over this will be considered an anomaly

# Global flag
server_ready = 0
Expand Down Expand Up @@ -166,4 +166,4 @@ def is_stopped(self):
print('Server shutting down')
server.shutdown()
server_thread.stop()
server_thread.join()
server_thread.join()
Binary file modified mahalanobis_distance/models/md_model_test-deploy.npz
Binary file not shown.

0 comments on commit fab0d26

Please sign in to comment.