MicrosoftResearch / Azimuth

Machine Learning-Based Predictive Modelling of CRISPR/Cas9 guide efficiency
BSD 3-Clause "New" or "Revised" License
226 stars 89 forks source link

running nosetests failed #23

Open nivekkagicom opened 6 years ago

nivekkagicom commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.