-
Notifications
You must be signed in to change notification settings - Fork 128
Refactoring code base to utilize better encapsulation #347
Conversation
Build failed.
|
73dac1a
to
92b8aa4
Compare
Build succeeded.
|
lgtm but this should require a 2nd approval, - @4n4nd thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requested minor changes
ae364b0
to
6c35136
Compare
anomaly_detector/core/job.py
Outdated
self.recreate_model = recreate_model | ||
|
||
def execute_with_tracing(self, tracer): | ||
"""Will wrap execution of inference with tracer to measure latency.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
execution of training
maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It executes the training but wraps a tracer around it. This is needed to make tracing possible to measure how long for example Training takes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sure, but the doc string says execution of inference and you're telling me it is the execution of training.
anomaly_detector/core/job.py
Outdated
recreate_models = False | ||
|
||
def __init__(self, node_map=24, model_adapter=None, recreate_model=True): | ||
"""Initialize inference job with fields to perform model training.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same training job
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed the comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstring says inference, you say training
Build succeeded.
|
Build succeeded.
|
a9f34a7
to
ea5c54b
Compare
Build failed.
|
f93fe31
to
eb6e143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Build succeeded.
|
Build succeeded (gate pipeline).
|
Description
Breaking up code and refactoring. Also include better docs.