Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

running nosetests failed #23

Open
nivekkagicom opened this issue Oct 25, 2017 · 2 comments
Open

running nosetests failed #23

nivekkagicom opened this issue Oct 25, 2017 · 2 comments

Comments

@nivekkagicom
Copy link

When I run nosetests son azimuth it fails with the following output:

# nosetests
/Library/Python/2.7/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20. "This module will be removed in 0.20.", DeprecationWarning)
/Library/Python/2.7/site-packages/sklearn/grid_search.py:42: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. This module will be removed in 0.20. DeprecationWarning)
F
======================================================================
FAIL: test_predictions (azimuth.tests.test_saved_models.SavedModelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/azimuth/tests/test_saved_models.py", line 19, in test_predictions
self.assertTrue(np.allclose(predictions, df['Stable prediction'].values, atol=1e-3))
AssertionError: False is not true
-------------------- >> begin captured stdout << ---------------------
No model file specified, using V3_model_nopos
`--------------------- >> end captured stdout << ----------------------`
----------------------------------------------------------------------
Ran 1 test in 3.481s
``
FAILED (failures=1)

@jjc2718
Copy link
Collaborator

jjc2718 commented Nov 2, 2017

Hi @nivekkagicom - did you use pip install azimuth to install? If so, could you try installing directly from the git repo instead (after uninstalling the pip package)? For example:

  1. pip uninstall azimuth
  2. git clone https://github.com/MicrosoftResearch/Azimuth.git ./azimuth
  3. cd ./azimuth; python setup.py install

then, try running the nosetests again? (The above assumes you're on Mac/Linux, but something similar should work on Windows)

I think the pip package is out of date, I'll look at updating it.

@nivekkagicom
Copy link
Author

I did install according to the instructions in the Readme.md. Using the provided steps does install Azimuth and rebuild scikit-learn-0.17.1 which allows nosetests to complete correctly. Might I suggest that the Readme.md file needs to be updated or perhaps better the project needs a new public release or to support the latest version of scikit-learn. Thanks for the assistance.

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

No branches or pull requests

2 participants