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

test_kde_predictor.py failing #87

Open
chengsoonong opened this issue Feb 17, 2017 · 4 comments
Open

test_kde_predictor.py failing #87

chengsoonong opened this issue Feb 17, 2017 · 4 comments
Assignees

Comments

@chengsoonong
Copy link
Owner

$ ./test
................E..............

ERROR: KDEClassifier implements the scikit-learn interface.

Traceback (most recent call last):
File "/Users/ong017/Repo/acton/tests/test_kde_predictor.py", line 15, in test_sklearn_interface
acton.kde_predictor.KDEClassifier)
File "/Users/ong017/anaconda3/envs/astro/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py", line 253, in check_estimator
check_parameters_default_constructible(name, Estimator)
File "/Users/ong017/anaconda3/envs/astro/lib/python3.5/site-packages/sklearn/utils/estimator_checks.py", line 1470, in check_parameters_default_constructible
with ignore_warnings(category=DeprecationWarning):
File "/Users/ong017/anaconda3/envs/astro/lib/python3.5/site-packages/sklearn/utils/testing.py", line 369, in enter
clean_warning_registry() # be safe and not propagate state + chaos
File "/Users/ong017/anaconda3/envs/astro/lib/python3.5/site-packages/sklearn/utils/testing.py", line 762, in clean_warning_registry
getattr(mod, reg).clear()
AttributeError: 'NoneType' object has no attribute 'clear'


Ran 31 tests in 7.023s

FAILED (errors=1)

@MatthewJA
Copy link
Collaborator

Odd, succeeds on Travis: https://travis-ci.org/chengsoonong/acton/builds/202512217

What version of sklearn are you on?

@chengsoonong
Copy link
Owner Author

Strange isn't it?

$ python
Python 3.5.2 |Continuum Analytics, Inc.| (default, Jul 2 2016, 17:52:12)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.

import sklearn
sklearn.version
'0.18.1'

@MatthewJA
Copy link
Collaborator

$ python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sklearn
>>> sklearn.__version__
'0.18.1'

I have no idea what the problem is (and can't reproduce it).

@chengsoonong
Copy link
Owner Author

I'll try again when I've got more head space.

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