Skip to content

Get rid of warnings when running tests#180

Open
nirtiac wants to merge 9 commits intomasterfrom
test_warnings
Open

Get rid of warnings when running tests#180
nirtiac wants to merge 9 commits intomasterfrom
test_warnings

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

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?

@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.

3 participants