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

Get rid of warnings when running tests #180

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

nirtiac
Copy link
Contributor

@nirtiac nirtiac commented Jun 21, 2019

No description provided.

@nirtiac nirtiac changed the title add changes Get rid of warnings when running tests Jun 21, 2019
vulcanai/plotters/visualization.py Outdated Show resolved Hide resolved
vulcanai/tests/plotters/test_visualization.py Outdated Show resolved Hide resolved
@@ -168,6 +172,7 @@ def test_display_pca(self, dnn_class):

def test_display_tsne(self, dnn_class):
"""Test t-SNE displays and saves."""
warnings.filterwarnings('ignore', category=PendingDeprecationWarning)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we instead look for something to replace this that's not pending deprecation? we may find ourselves in trouble in the future and may as well figure out how to solve it now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comment above is still relevant ^ I believe.

@divyachandran-ds
Copy link

@nirtiac @rfratila
I will work on all the above suggestions and get back to you.

@nirtiac
Copy link
Contributor Author

nirtiac commented Jun 25, 2019 via email

Copy link
Contributor Author

@nirtiac nirtiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Divya,

Can you explain the benefit of
'''elif interactive is True:
plt.draw()
plt.pause(1e-17)'''

Over what was already there? I'm afraid I've forgotten by then.

Also, if the solution for most of the warnings is to have an updated sklearn/numpy/whatever package, can you update the requirements.txt to include the required package versions?

vulcanai/tests/models/test_metrics.py Show resolved Hide resolved
@divyachandran-ds
Copy link

divyachandran-ds commented Aug 8, 2019 via email

@nirtiac
Copy link
Contributor Author

nirtiac commented Aug 27, 2019

@divyachandran-ds can you update the requirements as discussed above? ^

@divyachandran-ds
Copy link

divyachandran-ds commented Aug 27, 2019 via email

*cnn_class_binary.in_dim)))
test_target = torch.LongTensor(np.random.randint(0, 2,
size=num_items))
test_input = torch.Tensor(np.random.randint(0, 2,size=(num_items,*cnn_class_binary.in_dim)))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure that every line is within the limit

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

Successfully merging this pull request may close these issues.

None yet

3 participants