Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress warnings #29

Open
AmberSJones opened this issue Oct 1, 2020 · 1 comment
Open

suppress warnings #29

AmberSJones opened this issue Oct 1, 2020 · 1 comment

Comments

@AmberSJones
Copy link
Owner

there are cases where warnings in model development, etc. need to be suppressed.

@tannerlex
Copy link
Collaborator

convergence warning is suppressed after PR #67

suppression is still needed for:
/home/tjones/.local/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py:523: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
tensor_proto.tensor_content = nparray.tostring()
/home/tjones/.local/lib/python3.6/site-packages/tensorflow/python/framework/tensor_util.py:523: DeprecationWarning: tostring() is deprecated. Use tobytes() instead.
tensor_proto.tensor_content = nparray.tostring()

I tried suppression using warning around the tensorflow call in modeling_utilities.train_model:
warnings.filterwarnings('ignore', message='tostring() is deprecated')
es = tf.keras.callbacks.EarlyStopping(monitor=monitor, patience=patience, mode=mode)
warnings.filterwarnings('default')
but it didn't work

I also tried the same around the scipy call in anomaly_utilities.set_dynamic_threshold:
z = norm.ppf(1 - alpha / 2)
but it didn't work either

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants